]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update json encode/decode for new bucket info
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 15 May 2013 04:35:03 +0000 (21:35 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 15 May 2013 04:35:03 +0000 (21:35 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_json_enc.cc

index 7426e33102bfcaa3ffeef7f316c8b5caef0ad394..0a0176c9fa25ec8390dc221ffff2a53ee2e362bf 100644 (file)
@@ -404,12 +404,14 @@ void RGWBucketInfo::dump(Formatter *f) const
   encode_json("bucket", bucket, f);
   encode_json("owner", owner, f);
   encode_json("flags", flags, f);
+  encode_json("region", flags, f);
 }
 
 void RGWBucketInfo::decode_json(JSONObj *obj) {
   JSONDecoder::decode_json("bucket", bucket, obj);
   JSONDecoder::decode_json("owner", owner, obj);
   JSONDecoder::decode_json("flags", flags, obj);
+  JSONDecoder::decode_json("region", flags, obj);
 }
 
 void RGWObjEnt::dump(Formatter *f) const