]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/notification: set correct type to "post" and "copy" notifications 40113/head
authorYuval Lifshitz <ylifshit@redhat.com>
Mon, 15 Mar 2021 11:07:39 +0000 (13:07 +0200)
committerYuval Lifshitz <ylifshit@redhat.com>
Tue, 6 Apr 2021 08:01:18 +0000 (11:01 +0300)
Fixes: https://tracker.ceph.com/issues/49799
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/rgw_op.cc

index f2822e372dafe6e0ba08258482cab2f5653e2d13..66893236d0063bcce53380a05963dfb70c4dda65 100644 (file)
@@ -5073,7 +5073,7 @@ void RGWCopyObj::execute(optional_yield y)
 
   // make reservation for notification if needed
   std::unique_ptr<rgw::sal::Notification> res = store->get_notification(s->object.get(),
-                                               s, rgw::notify::ObjectCreatedPost);
+                                               s, rgw::notify::ObjectCreatedCopy);
   op_ret = res->publish_reserve();
   if (op_ret < 0) {
     return;
@@ -5762,7 +5762,7 @@ void RGWInitMultipart::execute(optional_yield y)
 
   // make reservation for notification if needed
   std::unique_ptr<rgw::sal::Notification> res = store->get_notification(s->object.get(),
-                               s, rgw::notify::ObjectCreatedCompleteMultipartUpload);
+                               s, rgw::notify::ObjectCreatedPost);
   op_ret = res->publish_reserve();
   if (op_ret < 0) {
     return;