]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix json encode of StateStopped 33193/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 13 Feb 2020 20:35:44 +0000 (15:35 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 13 Feb 2020 20:39:01 +0000 (15:39 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_json_enc.cc

index 1864f6cb63d7b5ab2b474a93bf0c42ca326eb992..dec0e32dfd99b6b2c278e2a0a8f993c121ea9f16 100644 (file)
@@ -1783,6 +1783,8 @@ void rgw_bucket_shard_sync_info::decode_json(JSONObj *obj)
     state = StateFullSync;
   } else if (s == "incremental-sync") {
     state = StateIncrementalSync;
+  } else if (s == "stopped") {
+    state = StateStopped;
   } else {
     state = StateInit;
   }