]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/notify: remove Manager-specific overloads
authorCasey Bodley <cbodley@redhat.com>
Thu, 2 May 2024 19:01:22 +0000 (15:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Jul 2024 20:07:00 +0000 (16:07 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 6f74455e62b7eb232199871174018ec441b254b0)

src/rgw/driver/rados/rgw_notify.cc
src/rgw/driver/rados/rgw_notify.h

index cdbbd63de474d511d26a0794558dbf06ad152c32..7d392ccc863ac426e5ae1a640718a2b572bb3b68 100644 (file)
@@ -829,13 +829,6 @@ int add_persistent_topic(const DoutPrefixProvider* dpp, librados::IoCtx& rados_i
   return 0;
 }
 
-int add_persistent_topic(const std::string& topic_queue, optional_yield y) {
-  if (!s_manager) {
-    return -EAGAIN;
-  }
-  return add_persistent_topic(s_manager.get(), s_manager->rados_store.getRados()->get_notif_pool_ctx(), topic_queue, y);
-}
-
 int remove_persistent_topic(const DoutPrefixProvider* dpp, librados::IoCtx& rados_ioctx, const std::string& topic_queue, optional_yield y) {
   librados::ObjectWriteOperation op;
   op.remove();
@@ -862,13 +855,6 @@ int remove_persistent_topic(const DoutPrefixProvider* dpp, librados::IoCtx& rado
   return 0;
 }
 
-int remove_persistent_topic(const std::string& topic_queue, optional_yield y) {
-  if (!s_manager) {
-    return -EAGAIN;
-  }
-  return remove_persistent_topic(s_manager.get(), s_manager->rados_store.getRados()->get_notif_pool_ctx(), topic_queue, y);
-}
-
 rgw::sal::Object* get_object_with_attributes(
   const reservation_t& res, rgw::sal::Object* obj) {
   // in case of copy obj, the tags and metadata are taken from source
index 0321cbdff3bb16daee592d147e341238c603f82c..13b3e3b42bdd3e07e39f802b1eba49da378b2e4a 100644 (file)
@@ -34,16 +34,10 @@ void shutdown();
 
 // create persistent delivery queue for a topic (endpoint)
 // this operation also add a topic queue to the common (to all RGWs) list of all topics
-int add_persistent_topic(const std::string& topic_queue, optional_yield y);
-
-// same as the above, except you need to provide the IoCtx
 int add_persistent_topic(const DoutPrefixProvider* dpp, librados::IoCtx& rados_ioctx, const std::string& topic_queue, optional_yield y);
 
 // remove persistent delivery queue for a topic (endpoint)
 // this operation also remove the topic queue from the common (to all RGWs) list of all topics
-int remove_persistent_topic(const std::string& topic_queue, optional_yield y);
-
-// same as the above, except you need to provide the IoCtx
 int remove_persistent_topic(const DoutPrefixProvider* dpp, librados::IoCtx& rados_ioctx, const std::string& topic_queue, optional_yield y);
 
 // struct holding reservation information