From: Yuval Lifshitz Date: Mon, 15 Mar 2021 11:07:39 +0000 (+0200) Subject: rgw/notification: set correct type to "post" and "copy" notifications X-Git-Tag: v17.1.0~2356^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40113%2Fhead;p=ceph.git rgw/notification: set correct type to "post" and "copy" notifications Fixes: https://tracker.ceph.com/issues/49799 Signed-off-by: Yuval Lifshitz --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index f2822e372daf..66893236d006 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -5073,7 +5073,7 @@ void RGWCopyObj::execute(optional_yield y) // make reservation for notification if needed std::unique_ptr 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 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;