diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2019-09-01 15:37:43 +0200 |
---|---|---|
committer | Yehuda Sadeh <yehuda@redhat.com> | 2020-01-28 19:20:36 +0100 |
commit | 90f892aea6d0edd455cbc8bcf5b3ddd949affde1 (patch) | |
tree | bb96af8e29644dbf65234baaac80aa64e6f08d17 /src/rgw/rgw_json_enc.cc | |
parent | rgw: pass through bucket sync pairs (diff) | |
download | ceph-90f892aea6d0edd455cbc8bcf5b3ddd949affde1.tar.xz ceph-90f892aea6d0edd455cbc8bcf5b3ddd949affde1.zip |
rgw-admin: bucket sync info command
Dumps bucket sources
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_json_enc.cc')
-rw-r--r-- | src/rgw/rgw_json_enc.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index c3740b233fe..3b7369bac8c 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -908,6 +908,12 @@ void rgw_sync_policy_info::decode_json(JSONObj *obj) JSONDecoder::decode_json("targets", targets, obj); } +void RGWBucketSyncPolicyHandler::peer_info::dump(Formatter *f) const +{ + encode_json("type", get_type(), f); + encode_json("bucket", bucket, f); +} + void rgw_obj_key::dump(Formatter *f) const { encode_json("name", name, f); |