]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: stash newer map on bootstrap when addr doesn't match 34500/head
authorSage Weil <sage@redhat.com>
Wed, 19 Feb 2020 23:42:09 +0000 (17:42 -0600)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 10 Apr 2020 07:24:07 +0000 (07:24 +0000)
commit12cacbd277fb33cd65108c15554237cc76243c4f
tree41348287201f4568c5437abe91517575c0955745
parentc7da604cb101cbe78a257a29498a98c69964e0a6
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>
(cherry picked from commit 71befa298658925555841a2a98802210954358ce)
src/ceph_mon.cc
src/mon/Monitor.cc