From b7bbcee2dca7f7bd817d4b37145b65ebbc379d3f Mon Sep 17 00:00:00 2001 From: renhwztetecs Date: Wed, 3 Feb 2016 14:43:53 +0800 Subject: [PATCH] mon: unregister command on shutdown unregister command on shutdown include: "quorum enter" && "quorum exit" Signed-off-by: huanwen ren --- src/mon/Monitor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 42d265ba7a25..339e3582c81f 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -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; -- 2.47.3