]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrMonitor: reset services map on drop_active
authorJohn Spray <john.spray@redhat.com>
Thu, 24 Aug 2017 18:07:37 +0000 (14:07 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 12:20:21 +0000 (08:20 -0400)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MgrMonitor.cc

index a1a2b2b94fd62bba31cb907292b8ffd1521de8cd..3c0320aa8d39cac73e3724ed7b624ebd9581ff62 100644 (file)
@@ -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