From 2842c073a66c9b7d2b54d42b5f09942fa6e059fd Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 16 Mar 2016 23:39:48 +0800 Subject: [PATCH] rgw/rgw_common.h: fix the RGWBucketInfo decoding Signed-off-by: Kefu Chai --- src/rgw/rgw_common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index aa2d6415748d8..90d2ae5a9379e 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -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); -- 2.39.5