]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: cancel election timer if we bootstrap
authorSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 01:51:07 +0000 (18:51 -0700)
committerSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 01:51:07 +0000 (18:51 -0700)
commit9ae0ec83dabe37ac15e5165559debdfef7a5f91d
treee306bcc97bf9ee6ded6d2ab120464f0fc825a294
parent03d3be3eaa96a8e72754c36abd6f355c68d52d59
mon/Elector: cancel election timer if we bootstrap

If we short-circuit and bootstrap, cancel our timer.  Otherwise it will
go off some time later when we are in who knows what state.

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