From: Sage Weil Date: Wed, 9 Mar 2016 14:48:15 +0000 (-0500) Subject: cls_rgw: use sized uint64_t for encoded time_t X-Git-Tag: v10.1.0~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b413a8f4557b73d4b3ce45d99ba9e60addf83aab;p=ceph.git cls_rgw: use sized uint64_t for encoded time_t The size of time_t varies between architectures--do not encode it directly. Reported-by: Eric Lee Signed-off-by: Sage Weil --- diff --git a/src/cls/rgw/cls_rgw_ops.h b/src/cls/rgw/cls_rgw_ops.h index 0ab665857cb9..70f41d884e3d 100644 --- a/src/cls/rgw/cls_rgw_ops.h +++ b/src/cls/rgw/cls_rgw_ops.h @@ -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) {}