From bb8f4c2b11c37710000822a23121c7b04332e681 Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Mon, 12 Mar 2012 11:07:40 -0400 Subject: inline docs for clear_active_connections! no longer says it cleans dead threads, it doesn't since 3.2.0 --- .../lib/active_record/connection_adapters/abstract/connection_pool.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index 7e8d13a030..4787bd2cbf 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -345,9 +345,7 @@ connection. For example: ActiveRecord::Base.connection.close connection_pools.values.any? { |pool| pool.active_connection? } end - # Returns any connections in use by the current thread back to the pool, - # and also returns connections to the pool cached by threads that are no - # longer alive. + # Returns any connections in use by the current thread back to the pool. def clear_active_connections! @connection_pools.each_value {|pool| pool.release_connection } end -- cgit v1.2.3