RUBY-416 removed connect_mutex from sync_refresh
This commit is contained in:
parent
ebfe279784
commit
4da27036cf
|
@ -514,7 +514,6 @@ 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
|
||||||
|
@ -522,5 +521,4 @@ module Mongo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue