]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: notify_new_monmap in all the places we update our monmap
authorGreg Farnum <gfarnum@redhat.com>
Mon, 22 Mar 2021 20:56:14 +0000 (20:56 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 3 May 2021 21:49:43 +0000 (21:49 +0000)
commit48466c2324416806cb5ebd8d57bf7e40dfd9eb1c
treeecf4f260bdd449c08e64596103a03c97a8fd809a
parent717ce59b76c659aaef8c5aec1355c0ac5cef7234
mon: notify_new_monmap in all the places we update our monmap

We can adopt new monmaps while bootstrapping, or in election messages, in
addition to MonmapMonitor::update_from_paxos. Since we use the
notification to update our election strategy and such, we need to notify
from these locations as well!

Fixes: https://tracker.ceph.com/issues/47654
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 1d5f4e879e50a537ef6db51f7e519a03ab586cd5)

Fixes: https://tracker.ceph.com/issues/50087
src/mon/Elector.cc
src/mon/Elector.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonmapMonitor.cc