]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: add a slurping flag to the Paxos state
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 10 Feb 2012 18:42:24 +0000 (10:42 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 10 Feb 2012 21:37:22 +0000 (13:37 -0800)
commit0bd545f5d6beb790e67fe2ee61f57d2ed6332531
treebf52e4ce2674088ba6c28a790ca794a877ece13c
parent3a7bb9999b49641ee28cac91e493aa4c231ede54
mon: add a slurping flag to the Paxos state

Set it before we start slurping, and clear it when we end slurping.
This allows us to differentiate between deliberately inconsistent
disk states, and broken disk states. Run simple checks in a new
is_consistent() call.

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