From: Dan Mick Date: Thu, 31 Jan 2013 22:26:10 +0000 (-0800) Subject: ceph: use "config set" consistently in help/error msgs X-Git-Tag: v0.57~35^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=73872e719435c4b92180e58710d22fff9fe0019c;p=ceph.git ceph: use "config set" consistently in help/error msgs apparently it was once known as set_config. Fix up everything to refer to the new name. Also, fix up the help message. Signed-off-by: Dan Mick --- diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index decf86db70af..0be1c8cea34e 100644 --- a/src/common/ceph_context.cc +++ b/src/common/ceph_context.cc @@ -183,7 +183,7 @@ void CephContext::do_command(std::string command, std::string args, bufferlist * std::string var = args; size_t pos = var.find(' '); if (pos == string::npos) { - jf.dump_string("error", "set_config syntax is 'set_config '"); + jf.dump_string("error", "syntax error: 'config set '"); } else { std::string val = var.substr(pos+1); var.resize(pos); @@ -253,7 +253,7 @@ CephContext::CephContext(uint32_t module_type_) _admin_socket->register_command("2", _admin_hook, ""); _admin_socket->register_command("perf schema", _admin_hook, "dump perfcounters schema"); _admin_socket->register_command("config show", _admin_hook, "dump current config settings"); - _admin_socket->register_command("config set", _admin_hook, "set_config : set a config settings"); + _admin_socket->register_command("config set", _admin_hook, "config set : set a config variable"); _admin_socket->register_command("log flush", _admin_hook, "flush log entries to log file"); _admin_socket->register_command("log dump", _admin_hook, "dump recent log entries to log file"); _admin_socket->register_command("log reopen", _admin_hook, "reopen log file");