rgw: remove extra useless info in bucket entry encoding

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
This commit is contained in:
Yehuda Sadeh 2012-02-13 12:07:17 -08:00
parent fbbbd01bfe
commit 9065dbd36d

View 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;