From: Kefu Chai Date: Wed, 16 Mar 2016 12:41:16 +0000 (+0800) Subject: rgw/rgw_common.h: fix the RGWBucketInfo decoding X-Git-Tag: v10.1.0~65^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3895878cfd9571064d57a6e2afd33ab2fb118b60;p=ceph.git rgw/rgw_common.h: fix the RGWBucketInfo decoding introduced by 416234b Signed-off-by: Kefu Chai --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index dcce8d84b3b2..aa2d6415748d 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -935,9 +935,9 @@ struct RGWBucketInfo ::decode(flags, bl); if (struct_v >= 5) ::decode(zonegroup, bl); - uint64_t ct; - ::decode(ct, bl); if (struct_v >= 6 && struct_v < 17) { + uint64_t ct; + ::decode(ct, bl); creation_time = ceph::real_clock::from_time_t((time_t)ct); } if (struct_v >= 7)