]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Paxos needs to store the latest version permanently on-disk.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 23 Mar 2012 17:31:29 +0000 (10:31 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 27 Mar 2012 20:57:49 +0000 (13:57 -0700)
commit2acf4aeaa690eb3be8b1dfc24bb5a1ca6207ee49
tree6331d115b25182e0946673de14415539321733fb
parentc3b04644544edb4ca0d19ba1d87b1e190702edb5
mon: Paxos needs to store the latest version permanently on-disk.

Previously it was only storing this m->latest_value in the stash,
which of course got overwritten. And then when somebody tried to read
it back, it failed!
Instead, require that the message include the regular version (not
just the stashed version), which the previous commit provides. And then
write the regular version to disk alongside the stash.

This set of procedures still suffers from some of the same disk consistency
issues as we recently fixed in slurping, but it's better than it was, and
fixing those would require a good deal more work.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mon/Paxos.cc