]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
elector: trigger a mon reset whenever we bump the epoch
authorGreg Farnum <greg@inktank.com>
Tue, 30 Apr 2013 18:01:54 +0000 (11:01 -0700)
committerGreg Farnum <greg@inktank.com>
Tue, 30 Apr 2013 18:01:54 +0000 (11:01 -0700)
commit6ae9bbb5d03cb5695a4ebb7a3c20f729de1bd67a
treeab01df0a90246c39044b2d9144aa156f3e0f0233
parent53a2c64ff1807c8d863dcd8c05571f4b3ed9c608
elector: trigger a mon reset whenever we bump the epoch

We need to call reset during every election cycle; luckily we
can call it more than once. bump_epoch is (by definition!) only called
once per cycle, and it's called at the beginning, so we put it there.

Fixes #4858.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/mon/Elector.cc