minor: small fix in replset initialization code

This commit is contained in:
Tyler Brock 2012-02-16 10:36:13 -05:00
parent bcb32e5935
commit fec284ee99
1 changed files with 4 additions and 5 deletions

View File

@ -440,19 +440,18 @@ module Mongo
# Generic initialization code.
def setup(opts)
super opts
@safe_mutex_lock = Mutex.new
@safe_mutexes = Hash.new {|hash, key| hash[key] = Mutex.new}
# Timeout on socket connect.
@connect_timeout = opts[:connect_timeout] || 30
# Clean up connections to dead threads.
@last_cleanup = Time.now
@cleanup_lock = Mutex.new
@last_refresh = Time.now
opts[:connect_timeout] = opts[:connect_timeout] || 30
super opts
end
# Checkout a socket connected to a node with one of