]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Paxos: get rid of the 'prepare_bootstrap()' mechanism 311/head
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 22 May 2013 12:59:08 +0000 (13:59 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 22 May 2013 16:12:38 +0000 (17:12 +0100)
commite15d29094503f279d444eda246fc45c09f5535c9
tree0d6e8fd8495743666f4fa7532c04f1a45e379ac1
parent586e8c2075f721456fbd40f738dab8ccfa657aa8
mon: Paxos: get rid of the 'prepare_bootstrap()' mechanism

We don't need it after all.  If we are in the middle of some proposal,
then we guarantee that said proposal is likely to be retried.  If we
haven't yet proposed, then it's forever more likely that a client will
eventually retry the message that triggered this proposal.

Basically, this mechanism attempted at fixing a non-problem, and was in
fact triggering some unforeseen issues that would have required increasing
the code complexity for no good reason.

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