From a370f3abed631b236cc754b5405866b889576afd Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 13 Sep 2011 10:44:27 -0400 Subject: [PATCH] minor: ReplSetConnection#connected? will be eventaully consistent. --- lib/mongo/repl_set_connection.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mongo/repl_set_connection.rb b/lib/mongo/repl_set_connection.rb index ef7f50f..bf63c50 100644 --- a/lib/mongo/repl_set_connection.rb +++ b/lib/mongo/repl_set_connection.rb @@ -214,9 +214,7 @@ module Mongo end def connected? - sync_synchronize(:SH) do - @connected - end + @primary_pool || @read_pool end # @deprecated