]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: unregister command on shutdown 7504/head
authorrenhwztetecs <rhwlyw@163.com>
Wed, 3 Feb 2016 06:43:53 +0000 (14:43 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 5 Feb 2016 02:21:10 +0000 (10:21 +0800)
unregister command on shutdown
include: "quorum enter" && "quorum exit"

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/Monitor.cc

index 42d265ba7a256f51628395c80f8a55b2265d896c..339e3582c81fefdcda73e708efdae64cc3b5f23d 100644 (file)
@@ -866,6 +866,8 @@ void Monitor::shutdown()
     admin_socket->unregister_command("quorum_status");
     admin_socket->unregister_command("sync_force");
     admin_socket->unregister_command("add_bootstrap_peer_hint");
+    admin_socket->unregister_command("quorum enter");
+    admin_socket->unregister_command("quorum exit");
     admin_socket->unregister_command("ops");
     delete admin_hook;
     admin_hook = NULL;