]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Paxos: assert that the store gives us back what we just wrote
authorSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 04:07:09 +0000 (21:07 -0700)
committerSage Weil <sage@inktank.com>
Wed, 26 Jun 2013 04:25:04 +0000 (21:25 -0700)
commitad9c294850a087190060fe098a2387ff0a344402
treed6e506c042386c147efd3ee015bc4730a8e911c8
parent11e03253726edfad0d1b9e9faf21914e5b062c90
mon/Paxos: assert that the store gives us back what we just wrote

In bug #5424 I observed leveldb failing internally and then returning
bad info.  We then hit a random/confusing assert.  Try to detect this
earlier by verifying that a get of a just-written last_committed gives
us back the right thing.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/Paxos.cc
src/mon/Paxos.h