]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/config.h
import ceph 16.2.7
[ceph.git] / ceph / src / common / config.h
index ef7d5b34fdc6b3f19dd82c913d766620a6cdc14b..989f5029e1270493ddf680d372d35219cac53185 100644 (file)
@@ -191,6 +191,9 @@ public:
   /// get encoded map<string,string> of compiled-in defaults
   void get_defaults_bl(const ConfigValues& values, ceph::buffer::list *bl);
 
+  /// Get the default value of a configuration option
+  std::optional<std::string> get_val_default(std::string_view key);
+
   // Get a configuration value.
   // No metavariables will be returned (they will have already been expanded)
   int get_val(const ConfigValues& values, const std::string_view key, char **buf, int len) const;