]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Elector: bootstrap on new monmap from elector
authorJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 4 Oct 2012 16:29:22 +0000 (17:29 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 4 Oct 2012 16:36:03 +0000 (17:36 +0100)
commit35f5effa73f676344a126b530de9d76f62fba516
treecd96016487bb10e05246e068b175f0f3e57c2b98
parent36efcb5518ad9c7534c21668fa3df11b83c00a3f
mon: Elector: bootstrap on new monmap from elector

Whenever we update the monmap we should bootstrap, in order to reset the
monitor's on-going activities and re-probe.

Not doing so contributed to bug #3252, during which we entered an infinite
election cycle. This may only happen though when we rely on 'mon initial
peers'. Specifying a monmap during the monitor's mkfs should not trigger
this bug.

Fixes: #3252
Backport: argonaut

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Elector.cc