diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 72fe0931af8..733d2da028d 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -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;