]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/crimson/test_config: replace obsolete get_tracked_conf_keys()
authorRonen Friedman <rfriedma@redhat.com>
Sun, 9 Mar 2025 14:33:19 +0000 (09:33 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 9 Mar 2025 14:34:40 +0000 (09:34 -0500)
.. with get_tracked_keys().

Following https://github.com/ceph/ceph/pull/61394,
all uses of the deprecated interface will be updated,
and that old interface will be removed.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/test/crimson/test_config.cc

index 7b1dddb715ffdf8eaa3a558ffe1f30889ebf3461..94cd04ab134a1887b7ca7b12b5358d685d2083e8 100644 (file)
@@ -18,12 +18,8 @@ class ConfigObs : public ceph::md_config_obs_impl<Config> {
   uint64_t last_change = INVALID_VALUE;
   uint64_t num_changes = 0;
 
-  const char** get_tracked_conf_keys() const override {
-    static const char* keys[] = {
-      test_uint_option.c_str(),
-      nullptr,
-    };
-    return keys;
+  std::vector<std::string> get_tracked_keys() const noexcept override {
+    return { test_uint_option };
   }
   void handle_conf_change(const Config& conf,
                           const std::set <std::string> &changes) override{