From 0b3b5ddffde7227ac3dae694cb9a5d781df17da2 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Thu, 15 Jul 2021 18:42:27 +0300 Subject: [PATCH] rgw/notification: send current time in complete multipart upload event Signed-off-by: Yuval Lifshitz Fixes: https://tracker.ceph.com/issues/51687 --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5