rgw/rgw_common.h: fix the RGWBucketInfo decoding

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-03-16 23:39:48 +08:00
parent e9e77c8553
commit 2842c073a6

View File

@ -935,10 +935,11 @@ struct RGWBucketInfo
::decode(flags, bl);
if (struct_v >= 5)
::decode(zonegroup, bl);
if (struct_v >= 6 && struct_v < 17) {
if (struct_v >= 6) {
uint64_t ct;
::decode(ct, bl);
creation_time = ceph::real_clock::from_time_t((time_t)ct);
if (struct_v < 17)
creation_time = ceph::real_clock::from_time_t((time_t)ct);
}
if (struct_v >= 7)
::decode(placement_rule, bl);