]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: stash newer map on bootstrap when addr doesn't match 33418/head
authorSage Weil <sage@redhat.com>
Wed, 19 Feb 2020 23:42:09 +0000 (17:42 -0600)
committerSage Weil <sage@redhat.com>
Wed, 19 Feb 2020 23:42:09 +0000 (17:42 -0600)
commit71befa298658925555841a2a98802210954358ce
tree99cde7286f539ff0935a0c1ed6a04e6b69f83940
parent151f88d7f93a91ab54871ecccbfb5acc18260199
mon: stash newer map on bootstrap when addr doesn't match

If we have to respawn because a newer monmap comes along where our addr or
rank changes, we need to use that on restart in order to make progress.
Stash the newer map in a temporary location and use it when we restart.

Don't bother cleaning up.  Having this map here is harmless, since we
only use it if it is newer than what is in paxos.

Fixes: https://tracker.ceph.com/issues/44076
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph_mon.cc
src/mon/Monitor.cc