Skip to content

Commit

Permalink
Merge pull request #5391 from jrochkind/connection_pool_doc
Browse files Browse the repository at this point in the history
ConnectionPooll#clear_active_connections! rdoc inaccuracy since 3.2.0
  • Loading branch information
tenderlove committed Mar 12, 2012
2 parents a01f0ab + bb8f4c2 commit da0595d
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -345,9 +345,7 @@ def active_connections?
connection_pools.values.any? { |pool| pool.active_connection? } connection_pools.values.any? { |pool| pool.active_connection? }
end end


# Returns any connections in use by the current thread back to the pool, # 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.
def clear_active_connections! def clear_active_connections!
@connection_pools.each_value {|pool| pool.release_connection } @connection_pools.each_value {|pool| pool.release_connection }
end end
Expand Down

0 comments on commit da0595d

Please sign in to comment.