Skip to content
Browse files

Merge pull request #5391 from jrochkind/connection_pool_doc

ConnectionPooll#clear_active_connections! rdoc inaccuracy since 3.2.0
  • Loading branch information...
2 parents a01f0ab + bb8f4c2 commit da0595d7d796e52b950d2c60cb60e58c18b70791 @tenderlove tenderlove committed
View
4 activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
@@ -345,9 +345,7 @@ def active_connections?
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

0 comments on commit da0595d

Please sign in to comment.
Something went wrong with that request. Please try again.