This is needed so that when squashing entries during data
sync we get a consistent mtime for that object.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
bef22609de95843008b5d02eb075252bb97fbe90)
rgw_bucket_entry_ver ver;
ver.epoch = (op.olh_epoch ? op.olh_epoch : olh.get_epoch());
- real_time mtime = real_clock::now(); /* mtime has no real meaning in instance removal context */
+ real_time mtime = obj.mtime(); /* mtime has no real meaning in instance removal context */
ret = log_index_operation(hctx, op.key, CLS_RGW_OP_UNLINK_INSTANCE, op.op_tag,
mtime, ver,
CLS_RGW_STATE_COMPLETE, header.ver, header.max_marker,