]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Paxos: share uncommitted value when leader is/was behind
authorSage Weil <sage@inktank.com>
Thu, 25 Jul 2013 18:10:53 +0000 (11:10 -0700)
committerSage Weil <sage@inktank.com>
Fri, 26 Jul 2013 00:01:36 +0000 (17:01 -0700)
commit17aa2d6d16c77028bae1d2a77903cdfd81efa096
treecd05ef41ea7515365f25e56f3cde0ecf3cbc9387
parent09a664e25391dbad9a479bae33904d28231f429d
mon/Paxos: share uncommitted value when leader is/was behind

If the leader has and older lc than we do, and we are sharing states to
bring them up to date, we still want to also share our uncommitted value.
This particular case was broken by b26b7f6e, which was only contemplating
the case where the leader was ahead of us or at the same point as us, but
not the case where the leader was behind.  Note that the call to
share_state() a few lines up will bring them fully up to date, so
after they receive and store_state() for this message they will be at the
same lc as we are.

Fixes: #5750
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 05b6c7e8645081f405c616735238ae89602d3cc6)
src/mon/Paxos.cc