Skip to content

Commit

Permalink
Let's not put the same connection into the conn pool multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
cheald committed Jun 2, 2015
1 parent a5ae30d commit 2ae0366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/server/connection_pool/queue.rb
Expand Up @@ -96,7 +96,7 @@ def initialize(options = {}, &block)
@block = block
@connections = 0
@options = options
@queue = Array.new(min_size, create_connection)
@queue = Array.new(min_size) { create_connection }
@mutex = Mutex.new
@resource = ConditionVariable.new
end
Expand Down

0 comments on commit 2ae0366

Please sign in to comment.