]> git-server-git.apps.pok.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, 22 Mar 2021 21:40:26 +0000 (21:40 +0000)
commit1d5f4e879e50a537ef6db51f7e519a03ab586cd5
tree139b4f40cd5930ca03e1a232e97e43844f6dceba
parentb788fc14b36ffdae15ad9e6ff997406583d1d8e5
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>
src/mon/Elector.cc
src/mon/Elector.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonmapMonitor.cc