Fix connection recycling pushing symbols to connection pool (#37674)
This commit is contained in:
parent
0688e64a0b
commit
3f16c48838
@ -70,8 +70,8 @@ class ConnectionPool::SharedTimedStack
|
|||||||
if @created == @max && !@queue.empty?
|
if @created == @max && !@queue.empty?
|
||||||
throw_away_connection = @queue.pop
|
throw_away_connection = @queue.pop
|
||||||
@tagged_queue[throw_away_connection.site].delete(throw_away_connection)
|
@tagged_queue[throw_away_connection.site].delete(throw_away_connection)
|
||||||
@create_block.call(preferred_tag)
|
|
||||||
throw_away_connection.close
|
throw_away_connection.close
|
||||||
|
@create_block.call(preferred_tag)
|
||||||
elsif @created != @max
|
elsif @created != @max
|
||||||
connection = @create_block.call(preferred_tag)
|
connection = @create_block.call(preferred_tag)
|
||||||
@created += 1
|
@created += 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user