]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/Paxos: only learn uncommitted value if it is in the future
authorSage Weil <sage@inktank.com>
Sun, 21 Jul 2013 15:11:22 +0000 (08:11 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 16:01:20 +0000 (09:01 -0700)
commitf598245f1355d7791162c03d90bdd97b013e56f3
treec810a519b35bddbb74b2a09acea56031d978a115
parent732286a28cd8a643593d490a7a84a590d372f78d
mon/Paxos: only learn uncommitted value if it is in the future

If an older peer sends an uncommitted value, make sure we only take it
if it is in the future, and at least as new as any current uncommitted
value.

(Prior to the previous patch, peers could send values from long-past
rounds.  The pn values are also bogus.)

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit b3253a453c057914753846c77499f98d3845c58e)
src/mon/Paxos.cc