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