]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: remove the repeat quorum size jugement 9814/head
authorsongbaisen <song.baisen@zte.com.cn>
Mon, 20 Jun 2016 11:00:44 +0000 (19:00 +0800)
committersongbaisen <song.baisen@zte.com.cn>
Mon, 20 Jun 2016 11:00:44 +0000 (19:00 +0800)
  Signed-off-by:song baisen <song.baisen@zte.com.cn>

src/mon/Paxos.cc

index be44f3479c1d9b06e13cab7e091d579e93f57635..c294fb26d1ce614b236e8413b1971b782804d13a 100644 (file)
@@ -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