]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: force election epoch bump on start 16944/head
authorSage Weil <sage@redhat.com>
Tue, 8 Aug 2017 22:43:22 +0000 (18:43 -0400)
committerSage Weil <sage@redhat.com>
Wed, 9 Aug 2017 18:03:13 +0000 (14:03 -0400)
commitef425374250014393c1d432a3eda95179bb70537
treece3e6c04838164b1303a7321c9cb1ea3c507c031
parentb61be07d45e7cc1b1f4b606408bf4ed04853fb9b
mon/Elector: force election epoch bump on start

We are generally careful when bumping the epoch so that we can join
existing rounds.  However, if we restart in the middle of an election,
and change versions, we need to be certain that our previous ACK (as
$version - 1) isn't accepted as truth for the restarted daemon (running
$version) keeping the same epoch.

The conservatism with bumping is to avoid spurious election cycles, but
mon restarts are more rare, and we need them here.

Fixes: http://tracker.ceph.com/issues/20949
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Elector.cc