]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: add show_config(Formatter) to ConfigProxy API 32174/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 13 Feb 2020 13:46:53 +0000 (15:46 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 13 Feb 2020 15:53:32 +0000 (17:53 +0200)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/crimson/common/config_proxy.cc
src/crimson/common/config_proxy.h

index e47af1e7bef72b6306608d0a65209e0309234d71..f3d6e29bd0289d43a6bcb72d02b20294e327ec5f 100644 (file)
@@ -41,5 +41,9 @@ seastar::future<> ConfigProxy::start()
   });
 }
 
+void ConfigProxy::show_config(ceph::Formatter* f) const {
+  get_config().show_config(*values, f);
+}
+
 ConfigProxy::ShardedConfig ConfigProxy::sharded_conf;
 }
index 0f78e42e6fe68679f0eb4240dcb588eecf662bdc..efb80c3a022fba97145d070efe22bce6824178be 100644 (file)
@@ -9,6 +9,10 @@
 #include "common/config_obs_mgr.h"
 #include "common/errno.h"
 
+namespace ceph {
+class Formatter;
+}
+
 namespace crimson::common {
 
 // a facade for managing config. each shard has its own copy of ConfigProxy.
@@ -148,6 +152,8 @@ public:
     });
   }
 
+  void show_config(ceph::Formatter* f) const;
+
   seastar::future<> parse_argv(std::vector<const char*>& argv) {
     // we could pass whatever is unparsed to seastar, but seastar::app_template
     // is used for driving the seastar application, and