From: Joao Eduardo Luis Date: Mon, 24 Mar 2014 10:47:20 +0000 (+0000) Subject: mon: Monitor: s/get_status()/get_cluster_status()/ X-Git-Tag: v0.79~99^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ed780adb1684c6eb5d62b9fabbdfb2bb27a6c68a;p=ceph.git mon: Monitor: s/get_status()/get_cluster_status()/ Monitor::get_status() is actually used to obtain 'cluster status' (i.e., status about *all* the monitors, maps, IO, overall healthiness). Just make that clear in the function name, avoiding confusion between multiple 'status-related' functions in the monitor. Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index dac9c3efe838..69b32a5229dd 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1941,7 +1941,7 @@ void Monitor::get_health(string& status, bufferlist *detailbl, Formatter *f) f->close_section(); } -void Monitor::get_status(stringstream &ss, Formatter *f) +void Monitor::get_cluster_status(stringstream &ss, Formatter *f) { if (f) f->open_object_section("status"); @@ -2283,8 +2283,8 @@ void Monitor::handle_command(MMonCommand *m) cmd_getval(g_ceph_context, cmdmap, "detail", detail); if (prefix == "status") { - // get_status handles f == NULL - get_status(ds, f.get()); + // get_cluster_status handles f == NULL + get_cluster_status(ds, f.get()); if (f) { f->flush(ds); diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index e8828a164644..65b57053ecbf 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -632,7 +632,7 @@ public: * @param detailbl optional bufferlist* to fill with a detailed report */ void get_health(string& status, bufferlist *detailbl, Formatter *f); - void get_status(stringstream &ss, Formatter *f); + void get_cluster_status(stringstream &ss, Formatter *f); void reply_command(MMonCommand *m, int rc, const string &rs, version_t version); void reply_command(MMonCommand *m, int rc, const string &rs, bufferlist& rdata, version_t version);