From: Greg Farnum Date: Fri, 6 Dec 2013 22:55:13 +0000 (-0800) Subject: Monitor: disseminate leader's command set instead of our own X-Git-Tag: v0.75~125^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb51b1ed1ad4dfaa64b83e8601baee51ec13ec42;p=ceph.git Monitor: disseminate leader's command set instead of our own Signed-off-by: Greg Farnum --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 9c7a99fe5a3..ecee1eb5558 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2025,7 +2025,8 @@ void Monitor::handle_command(MMonCommand *m) if (prefix == "get_command_descriptions") { bufferlist rdata; Formatter *f = new_formatter("json"); - get_command_descriptions(mon_commands, ARRAY_SIZE(mon_commands), f, &rdata); + get_command_descriptions(leader_supported_mon_commands, + leader_supported_mon_commands_size, f, &rdata); delete f; reply_command(m, 0, "", rdata, 0); return;