]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: move supported_commands fields, methods into Monitor, and fix leak 954/head
authorSage Weil <sage@inktank.com>
Tue, 17 Dec 2013 00:09:44 +0000 (16:09 -0800)
committerSage Weil <sage@inktank.com>
Tue, 17 Dec 2013 00:09:44 +0000 (16:09 -0800)
commit7e618c937bba233b5d3091644e42a05aa4554f29
tree1265d57af7334889818f402a1bd85c35fdbfea57
parent1597d4e9f57758c80d8124510ff8b54199d124ad
mon: move supported_commands fields, methods into Monitor, and fix leak

We were leaking the static leader_supported_mon_commands.  Move this into
the class so that we can clean up in the destructor.

Rename get_command_descriptions -> format_command_descriptions.

Fixes: #7009
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Elector.cc
src/mon/Monitor.cc
src/mon/Monitor.h
src/test/common/get_command_descriptions.cc