rgw: fix RGWBucketInfo encoding of owner

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-09-29 16:32:14 -07:00
parent 4b8d72b3cf
commit 560f90c57f

View File

@ -408,14 +408,17 @@ struct RGWBucketInfo
string owner;
void encode(bufferlist& bl) const {
__u32 ver = 1;
__u32 ver = 2;
::encode(ver, bl);
::encode(bucket, bl);
::encode(owner, bl);
}
void decode(bufferlist::iterator& bl) {
__u32 ver;
::decode(ver, bl);
::decode(bucket, bl);
if (ver > 1)
::decode(owner, bl);
}
};
WRITE_CLASS_ENCODER(RGWBucketInfo)