]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Paxos: get rid of the 'prepare_bootstrap()' mechanism
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 22 May 2013 12:59:08 +0000 (13:59 +0100)
committerSage Weil <sage@inktank.com>
Mon, 27 May 2013 19:44:25 +0000 (12:44 -0700)
commit0e127dc4ef16d19d56a3603ca90fa6b076d905b0
treedfe6195f3a4bbd6ad073cb31b163afcbb6f435d2
parentf29206bdd950d1e916a1422b4826caaf4a8cef3a
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>
(cherry picked from commit e15d29094503f279d444eda246fc45c09f5535c9)
src/mon/MonmapMonitor.cc
src/mon/Paxos.cc
src/mon/Paxos.h
src/mon/PaxosService.h