From 21b4f5aaf82de3b6e915c3a871bc45bdd2f8ec81 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Mon, 15 Mar 2021 13:07:39 +0200 Subject: [PATCH] rgw/notification: set correct type to "post" and "copy" notifications Fixes: https://tracker.ceph.com/issues/49799 Signed-off-by: Yuval Lifshitz --- src/rgw/rgw_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3