diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-12 09:47:19 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-12 09:47:19 -0700 |
commit | da0595d7d796e52b950d2c60cb60e58c18b70791 (patch) | |
tree | 71c125e09d82cd5a2eb52fae681ed24340489e6f /activerecord/lib | |
parent | a01f0ab83981f0ea15a1f683b84186961732f416 (diff) | |
parent | bb8f4c2b11c37710000822a23121c7b04332e681 (diff) | |
download | rails-da0595d7d796e52b950d2c60cb60e58c18b70791.tar.gz rails-da0595d7d796e52b950d2c60cb60e58c18b70791.tar.bz2 rails-da0595d7d796e52b950d2c60cb60e58c18b70791.zip |
Merge pull request #5391 from jrochkind/connection_pool_doc
ConnectionPooll#clear_active_connections! rdoc inaccuracy since 3.2.0
Diffstat (limited to 'activerecord/lib')
-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 |