From 10bf6a5927d93bd9088cc2cf57719f3732700f63 Mon Sep 17 00:00:00 2001 From: songbaisen Date: Mon, 20 Jun 2016 19:00:44 +0800 Subject: [PATCH] mon: remove the repeat quorum size jugement Signed-off-by:song baisen --- src/mon/Paxos.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index be44f3479c1..c294fb26d1c 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -1424,9 +1424,7 @@ bool Paxos::is_readable(version_t v) ret = (mon->is_peon() || mon->is_leader()) && (is_active() || is_updating() || is_writing()) && - last_committed > 0 && // must have a value - (mon->get_quorum().size() == 1 || // alone, or - is_lease_valid()); // have lease + last_committed > 0 && is_lease_valid(); // must have a value alone, or have lease dout(5) << __func__ << " = " << (int)ret << " - now=" << ceph_clock_now(g_ceph_context) << " lease_expire=" << lease_expire