]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_common.h: fix the RGWBucketInfo decoding 8154/head
authorKefu Chai <kchai@redhat.com>
Wed, 16 Mar 2016 12:41:16 +0000 (20:41 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 16 Mar 2016 12:41:18 +0000 (20:41 +0800)
introduced by 416234b

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_common.h

index dcce8d84b3b24b03bf7cea51232b0778f3aea131..aa2d6415748d82c79138583387497702e7bcffc0 100644 (file)
@@ -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)