]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove deleted monitors from the disallowed_leaders set
authorGreg Farnum <gfarnum@redhat.com>
Thu, 30 Sep 2021 19:05:25 +0000 (19:05 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 5 Oct 2021 00:01:02 +0000 (00:01 +0000)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/MonmapMonitor.cc

index 66bce6d0ab77ed0d14d6cfa328dde305b481d079..bbeb66d8914cd607ce1f760598128b04b5f7d4da 100644 (file)
@@ -751,6 +751,7 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
 
     entity_addrvec_t addrs = pending_map.get_addrs(name);
     pending_map.remove(name);
+    pending_map.disallowed_leaders.erase(name);
     pending_map.last_changed = ceph_clock_now();
     ss << "removing mon." << name << " at " << addrs
        << ", there will be " << pending_map.size() << " monitors" ;