]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add tenant to rgw_bucket json format
authorCasey Bodley <cbodley@redhat.com>
Thu, 30 Jun 2016 21:42:54 +0000 (17:42 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 24 Aug 2016 18:05:19 +0000 (14:05 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit fc0df4802b48fa095587b93557c82da5446d9ca3)

src/rgw/rgw_json_enc.cc

index cd4a0f5e3770623746bb4058a075b9a9192e013b..4a4e84bd9afa543429c523bd2f22ea769990efef 100644 (file)
@@ -506,6 +506,7 @@ void rgw_bucket::dump(Formatter *f) const
   encode_json("index_pool", index_pool, f);
   encode_json("marker", marker, f);
   encode_json("bucket_id", bucket_id, f);
+  encode_json("tenant", tenant, f);
 }
 
 void rgw_bucket::decode_json(JSONObj *obj) {
@@ -515,6 +516,7 @@ void rgw_bucket::decode_json(JSONObj *obj) {
   JSONDecoder::decode_json("index_pool", index_pool, obj);
   JSONDecoder::decode_json("marker", marker, obj);
   JSONDecoder::decode_json("bucket_id", bucket_id, obj);
+  JSONDecoder::decode_json("tenant", tenant, obj);
 }
 
 void RGWBucketEntryPoint::dump(Formatter *f) const