]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cls/rbd: fixed typo in mirror image state ostream operator
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 04:29:12 +0000 (23:29 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2020 15:53:43 +0000 (10:53 -0500)
The non-primary demoted state was incorrectly outputting demoted
twice.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/rbd/cls_rbd_types.cc

index 57e919faf18eb5fb7a088d68aed092224ef0396f..b6e1cd9b0ddc8d68a99f9b10fba91d2991a493b8 100644 (file)
@@ -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";