]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: elector: return after triggering a new election 32981/head
authorGreg Farnum <gfarnum@redhat.com>
Thu, 30 Jan 2020 12:43:13 +0000 (04:43 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 30 Jan 2020 12:43:13 +0000 (04:43 -0800)
commit337d12ba802d5b31db36be25c3349b9b67ec17ba
tree711c47e5b5d7aef6ab8d8353490462c7391da5a5
parent8186dd98a621a0c427e7326f33adbb45190e7e92
mon: elector: return after triggering a new election

When receiving an old propose, we were correctly triggering a new election
but not then returning out of receive_propose(), so we processed the
"should I defer" logic and perhaps sent out a deferal (in the current epoch!).

Fixes: https://tracker.ceph.com/issues/42977
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/ElectionLogic.cc