]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix bucket instance json encoding
authorYehuda Sadeh <yehuda@inktank.com>
Sat, 13 Jul 2013 03:26:06 +0000 (20:26 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 15 Jul 2013 17:37:28 +0000 (10:37 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_json_enc.cc

index 9291b261297bbdb7528e99e4c306e2b1eb03feb1..05d7206ba44281364f68ed4d87ee152670b6e2ae 100644 (file)
@@ -494,7 +494,7 @@ void RGWBucketInfo::dump(Formatter *f) const
   encode_json("owner", owner, f);
   encode_json("flags", flags, f);
   encode_json("region", region, f);
-  encode_json("placement_rule", region, f);
+  encode_json("placement_rule", placement_rule, f);
   encode_json("has_instance_obj", has_instance_obj, f);
 }
 
@@ -504,7 +504,7 @@ void RGWBucketInfo::decode_json(JSONObj *obj) {
   JSONDecoder::decode_json("owner", owner, obj);
   JSONDecoder::decode_json("flags", flags, obj);
   JSONDecoder::decode_json("region", region, obj);
-  JSONDecoder::decode_json("placement_rule", region, obj);
+  JSONDecoder::decode_json("placement_rule", placement_rule, obj);
   JSONDecoder::decode_json("has_instance_obj", has_instance_obj, obj);
 }