From: Casey Bodley Date: Thu, 13 Feb 2020 20:35:44 +0000 (-0500) Subject: rgw: fix json encode of StateStopped X-Git-Tag: v15.1.1~324^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=34e2ebfa76058fea4dd140a061273e25c43bbe7c;p=ceph.git rgw: fix json encode of StateStopped Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index 1864f6cb63d7..dec0e32dfd99 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -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; }