"name=key,type=CephString name=value,type=CephString",
"Set a configuration option at runtime (not persistent)",
"osd", "rw", "cli,rest")
+COMMAND("config get " \
+ "name=key,type=CephString",
+ "Get a configuration option at runtime",
+ "osd", "r", "cli,rest")
COMMAND("config unset " \
"name=key,type=CephString",
"Unset a configuration option at runtime (not persistent)",
}
osd_lock.Lock();
}
+ else if (prefix == "config get") {
+ std::string key;
+ cmd_getval(cct, cmdmap, "key", key);
+ osd_lock.Unlock();
+ std::string val;
+ r = cct->_conf->get_val(key, &val);
+ if (r == 0) {
+ ds << val;
+ }
+ osd_lock.Lock();
+ }
else if (prefix == "config unset") {
std::string key;
cmd_getval(cct, cmdmap, "key", key);