]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove extra useless info in bucket entry encoding
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 13 Feb 2012 20:07:17 +0000 (12:07 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 13 Feb 2012 20:08:19 +0000 (12:08 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
src/rgw/rgw_common.h

index 72fe0931af84d50225d2667dcdc20e0af1f8c2c4..733d2da028d1f7b4b0ae0b288e60fb6cbd8db089 100644 (file)
@@ -610,7 +610,8 @@ struct RGWBucketEnt {
     ::encode(struct_v, bl);
     uint64_t s = size;
     __u32 mt = mtime;
-    ::encode(bucket.name, bl);
+    string empty_str;  // originally had the bucket name here, but we encode bucket later
+    ::encode(empty_str, bl);
     ::encode(s, bl);
     ::encode(mt, bl);
     ::encode(count, bl);
@@ -623,7 +624,8 @@ struct RGWBucketEnt {
     ::decode(struct_v, bl);
     __u32 mt;
     uint64_t s;
-    ::decode(bucket.name, bl);
+    string empty_str;  // backward compatibility
+    ::decode(empty_str, bl);
     ::decode(s, bl);
     ::decode(mt, bl);
     size = s;