]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Paxos: update first_committed only from paxos
authorSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 22:58:43 +0000 (15:58 -0700)
committerSage Weil <sage@inktank.com>
Wed, 26 Jun 2013 13:55:02 +0000 (06:55 -0700)
commitd2f38118140d6334b581f422cfb22fc3d820e0bd
tree38f99047d6fc7805277ea48ffc098eae5fd3fa98
parent290ccde1dc5fb3fbc7356022d8b813798feacc00
mon/Paxos: update first_committed only from paxos

Do not touch the in-memory first_committed until the trim commits.  This
avoids any possible confusion due to races and keeps commit() as similar
to store_state() as possible.

Similarly, do not touch first_committed from store_state.  We should
*only* pull it out of the kv store.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Paxos.cc