From: Yuval Lifshitz Date: Thu, 15 Jul 2021 15:42:27 +0000 (+0300) Subject: rgw/notification: send current time in complete multipart upload event X-Git-Tag: v17.1.0~1362^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0b3b5ddffde7227ac3dae694cb9a5d781df17da2;p=ceph.git rgw/notification: send current time in complete multipart upload event Signed-off-by: Yuval Lifshitz Fixes: https://tracker.ceph.com/issues/51687 --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 167ad3593e446..edfc57b346304 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -6374,7 +6374,7 @@ void RGWCompleteMultipart::execute(optional_yield y) } // send request to notification manager - int ret = res->publish_commit(this, ofs, target_obj->get_mtime(), final_etag_str, target_obj->get_instance()); + int ret = res->publish_commit(this, ofs, ceph::real_clock::now(), final_etag_str, target_obj->get_instance()); if (ret < 0) { ldpp_dout(this, 1) << "ERROR: publishing notification failed, with error: " << ret << dendl; // too late to rollback operation, hence op_ret is not set here