From: John Spray Date: Thu, 24 Aug 2017 18:07:37 +0000 (-0400) Subject: mon/MgrMonitor: reset services map on drop_active X-Git-Tag: v13.0.1~332^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b629ae46599d79ca1929cfc6637b367c6bb9029;p=ceph.git mon/MgrMonitor: reset services map on drop_active Signed-off-by: John Spray --- diff --git a/src/mon/MgrMonitor.cc b/src/mon/MgrMonitor.cc index a1a2b2b94fd..3c0320aa8d3 100644 --- a/src/mon/MgrMonitor.cc +++ b/src/mon/MgrMonitor.cc @@ -630,6 +630,7 @@ void MgrMonitor::drop_active() pending_map.active_gid = 0; pending_map.available = false; pending_map.active_addr = entity_addr_t(); + pending_map.services.clear(); // So that when new active mgr subscribes to mgrdigest, it will // get an immediate response instead of waiting for next timer