]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/notification: send current time in complete multipart upload event 42358/head
authorYuval Lifshitz <ylifshit@redhat.com>
Thu, 15 Jul 2021 15:42:27 +0000 (18:42 +0300)
committerYuval Lifshitz <ylifshit@redhat.com>
Thu, 15 Jul 2021 15:42:27 +0000 (18:42 +0300)
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
Fixes: https://tracker.ceph.com/issues/51687
src/rgw/rgw_op.cc

index 167ad3593e446542e84ef1f89c3999c82b180db4..edfc57b346304fdfede4af86e33eddd5042673d0 100644 (file)
@@ -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