]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: always discard pending on election completion
authorSage Weil <sage@newdream.net>
Wed, 3 Dec 2008 21:41:12 +0000 (13:41 -0800)
committerSage Weil <sage@newdream.net>
Wed, 3 Dec 2008 21:56:12 +0000 (13:56 -0800)
commit431443e005cc42c7f4fd77d160326218ce3aefc4
tree38ce54ceae7e86c2a627b6c4a34acb85a8e102fc
parente934ea67d5fc55614f116626c8f64e0805488483
mon: always discard pending on election completion

Previously we tried to save the pending if we were still the
leader.  The problem is that while we were not leader, we may have
missed out on some updates, in which case the pending may no longer
be based on the current state.

In the future, we could make the commit waiters smart about callback
return codes so that they try to reapply.  For now, don't worry
about it.
src/mon/PaxosService.cc