]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: use sized uint64_t for encoded time_t 7999/head
authorSage Weil <sage@redhat.com>
Wed, 9 Mar 2016 14:48:15 +0000 (09:48 -0500)
committerSage Weil <sage@redhat.com>
Wed, 9 Mar 2016 14:48:15 +0000 (09:48 -0500)
The size of time_t varies between architectures--do not encode it
directly.

Reported-by: Eric Lee <eric.lee@hgst.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/cls/rgw/cls_rgw_ops.h

index 0ab665857cb94c07332074e59228fd6ea0506637..70f41d884e3dec6f588177d8449da264a99017ba 100644 (file)
@@ -164,7 +164,7 @@ struct rgw_cls_link_olh_op {
   uint64_t olh_epoch;
   bool log_op;
   uint16_t bilog_flags;
-  time_t unmod_since; /* only create delete marker if newer then this */
+  uint64_t unmod_since; /* only create delete marker if newer then this */
 
   rgw_cls_link_olh_op() : delete_marker(false), olh_epoch(0), log_op(false), bilog_flags(0) {}