]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: Paxos: only finish a queued proposal if there's actually *any*
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 12 Mar 2013 12:37:01 +0000 (12:37 +0000)
committerSage Weil <sage@inktank.com>
Wed, 13 Mar 2013 22:03:00 +0000 (15:03 -0700)
commitb99367bfb2c1a98df901c073b9b4e9b7aceb21bd
tree9e04e879f5c4909811cc61547327563f7187cdad
parent88725316ddcfa02ff110e659f7a8131dc1ea2cfc
mon: Paxos: only finish a queued proposal if there's actually *any*

When proposing an older value learned during recovery, we don't create
a queued proposal -- we go straight through Paxos.  Therefore, when
finishing a proposal, we must be sure that we have a proposal in the queue
before dereferencing it, otherwise we will segfault.

Fixes: #4250
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/Paxos.cc
src/mon/Paxos.h