]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: make the OperationThrottler::with_throttle private
authorRadosław Zarzyński <rzarzyns@redhat.com>
Fri, 1 Apr 2022 17:46:15 +0000 (19:46 +0200)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Thu, 5 May 2022 02:06:31 +0000 (04:06 +0200)
Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
src/crimson/osd/osd_operation.h

index be507dd42fb9c9a66cab507ad05c5e87773625f5..8bde25e0efd9f655a8f6f87b4ffcebf93c3e5189 100644 (file)
@@ -115,14 +115,6 @@ using OSDOperationRegistry = OperationRegistryT<
  */
 class OperationThrottler : public Blocker,
                        private md_config_obs_t {
-public:
-  OperationThrottler(ConfigProxy &conf);
-
-  const char** get_tracked_conf_keys() const final;
-  void handle_conf_change(const ConfigProxy& conf,
-                         const std::set<std::string> &changed) final;
-  void update_from_config(const ConfigProxy &conf);
-
   template <typename F>
   auto with_throttle(
     OperationRef op,
@@ -138,6 +130,14 @@ public:
       });
   }
 
+public:
+  OperationThrottler(ConfigProxy &conf);
+
+  const char** get_tracked_conf_keys() const final;
+  void handle_conf_change(const ConfigProxy& conf,
+                         const std::set<std::string> &changed) final;
+  void update_from_config(const ConfigProxy &conf);
+
   template <typename F>
   seastar::future<> with_throttle_while(
     OperationRef op,