diff options
author | Jonathan Rochkind <jonathan@dnil.net> | 2012-03-12 11:07:40 -0400 |
---|---|---|
committer | Jonathan Rochkind <jonathan@dnil.net> | 2012-03-12 11:07:40 -0400 |
commit | bb8f4c2b11c37710000822a23121c7b04332e681 (patch) | |
tree | be7feb20e36d4bcf404eb84a9aab17d8e2fa6ccb /activerecord/lib/active_record/connection_adapters | |
parent | 90d96353e6dcd962b182e03f53f2214acde00907 (diff) | |
download | rails-bb8f4c2b11c37710000822a23121c7b04332e681.tar.gz rails-bb8f4c2b11c37710000822a23121c7b04332e681.tar.bz2 rails-bb8f4c2b11c37710000822a23121c7b04332e681.zip |
inline docs for clear_active_connections! no longer says it cleans dead threads, it doesn't since 3.2.0
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |