mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
rgw/rgw_common.h: fix the RGWBucketInfo decoding
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
e9e77c8553
commit
2842c073a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user