From 7b629ae46599d79ca1929cfc6637b367c6bb9029 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 24 Aug 2017 14:07:37 -0400 Subject: [PATCH] mon/MgrMonitor: reset services map on drop_active Signed-off-by: John Spray --- src/mon/MgrMonitor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/MgrMonitor.cc b/src/mon/MgrMonitor.cc index a1a2b2b94fd62..3c0320aa8d39c 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 -- 2.39.5