mirror of
https://github.com/ceph/ceph
synced 2025-01-20 18:21:57 +00:00
rgw: fix RGWBucketInfo encoding of owner
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
4b8d72b3cf
commit
560f90c57f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user