RUBY-416 removed connect_mutex from sync_refresh
This commit is contained in:
parent
ebfe279784
commit
4da27036cf
|
@ -514,12 +514,10 @@ module Mongo
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync_refresh
|
def sync_refresh
|
||||||
@connect_mutex.synchronize do
|
if @refresh_mode == :sync &&
|
||||||
if @refresh_mode == :sync &&
|
((Time.now - @last_refresh) > @refresh_interval)
|
||||||
((Time.now - @last_refresh) > @refresh_interval)
|
@last_refresh = Time.now
|
||||||
@last_refresh = Time.now
|
refresh
|
||||||
refresh
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue