minor: ReplSetConnection#connected? will be eventaully consistent.
This commit is contained in:
parent
701bba8942
commit
a370f3abed
|
@ -214,9 +214,7 @@ module Mongo
|
||||||
end
|
end
|
||||||
|
|
||||||
def connected?
|
def connected?
|
||||||
sync_synchronize(:SH) do
|
@primary_pool || @read_pool
|
||||||
@connected
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# @deprecated
|
# @deprecated
|
||||||
|
|
Loading…
Reference in New Issue