From 560f90c57f6c86152474e086dd0d42a3bc08a208 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 29 Sep 2011 16:32:14 -0700 Subject: [PATCH] rgw: fix RGWBucketInfo encoding of owner Signed-off-by: Sage Weil --- src/rgw/rgw_common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 52f92981c53a1..de97558754891 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -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) -- 2.39.5