From: Yehuda Sadeh Date: Mon, 1 Jul 2013 18:01:39 +0000 (-0700) Subject: rgw: modify RGWBucketInfo::creation_time encoding / decoding X-Git-Tag: v0.67-rc1~128^2~18^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cfc1f2ee1f4345a88d7d72f33f6f9b838fa134ce;p=ceph.git rgw: modify RGWBucketInfo::creation_time encoding / decoding Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 0fe3af43a26d..84d1075b7776 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -649,7 +649,8 @@ struct RGWBucketInfo ::encode(owner, bl); ::encode(flags, bl); ::encode(region, bl); - ::encode((uint64_t)creation_time, bl); + uint64_t ct = (uint64_t)creation_time; + ::encode(ct, bl); ::encode(placement_rule, bl); ::encode(has_instance_obj, bl); ENCODE_FINISH(bl); @@ -663,8 +664,11 @@ struct RGWBucketInfo ::decode(flags, bl); if (struct_v >= 5) ::decode(region, bl); - if (struct_v >= 6) - ::decode((uint64_t&)creation_time, bl); + if (struct_v >= 6) { + uint64_t ct; + ::decode(ct, bl); + creation_time = (time_t)ct; + } if (struct_v >= 7) ::decode(placement_rule, bl); if (struct_v >= 8)