Skip to content

Commit

Permalink
dont drain all
Browse files Browse the repository at this point in the history
  • Loading branch information
tokumine committed Apr 2, 2012
1 parent bb9982b commit daa6515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cartodb/connection_pool.rb
Expand Up @@ -16,8 +16,8 @@ def fetch(configuration, &block)
@pool[connection_id(configuration)][:connection]
else
if @pool.size >= MAX_POOL_SIZE
close_connections!
#close_oldest_connection!
#close_connections!
close_oldest_connection!
end
connection = yield
@pool[connection_id(configuration)] = { :connection => connection, :last_accessed => Time.now }
Expand Down

0 comments on commit daa6515

Please sign in to comment.