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