From 7c34b0c7029f259a8684222d0d215ecbc9fab322 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 26 Feb 2020 23:29:12 -0500 Subject: [PATCH] cls/rbd: fixed typo in mirror image state ostream operator The non-primary demoted state was incorrectly outputting demoted twice. Signed-off-by: Jason Dillaman --- src/cls/rbd/cls_rbd_types.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/rbd/cls_rbd_types.cc b/src/cls/rbd/cls_rbd_types.cc index 57e919faf18..b6e1cd9b0dd 100644 --- a/src/cls/rbd/cls_rbd_types.cc +++ b/src/cls/rbd/cls_rbd_types.cc @@ -997,7 +997,7 @@ std::ostream& operator<<(std::ostream& os, MirrorSnapshotState type) { os << "non-primary"; break; case MIRROR_SNAPSHOT_STATE_NON_PRIMARY_DEMOTED: - os << "demoted (demoted)"; + os << "non-primary (demoted)"; break; default: os << "unknown"; -- 2.39.5