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 <joao.luis@inktank.com>
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");
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);
* @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);