diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-05-11 14:20:58 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-05-11 14:20:58 +0530 |
commit | 525fa7ef7ce02bf3bfd99058ea18547f21c4f715 (patch) | |
tree | bace6e88d600c0f7c0270f134f6ffbe187e332d3 /activerecord/lib | |
parent | b185db5d61ea9277f29ee0130db7062673f1a839 (diff) | |
parent | 64634ce61a6098fd0983252c094b81a5ec4aa5a5 (diff) | |
download | rails-525fa7ef7ce02bf3bfd99058ea18547f21c4f715.tar.gz rails-525fa7ef7ce02bf3bfd99058ea18547f21c4f715.tar.bz2 rails-525fa7ef7ce02bf3bfd99058ea18547f21c4f715.zip |
[ci skip] Update documents of `ConnectionHandler`
[ci skip] Update documents of `ConnectionHandler`
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 1bea16ebcc..f3abd01290 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -826,9 +826,7 @@ module ActiveRecord # in order to lookup the correct connection pool. class ConnectionHandler def initialize - # These caches are keyed by klass.name, NOT klass. Keying them by klass - # alone would lead to memory leaks in development mode as all previous - # instances of the class would stay in memory. + # These caches are keyed by spec.name (ConnectionSpecification#name). @owner_to_pool = Concurrent::Map.new(:initial_capacity => 2) do |h,k| h[k] = Concurrent::Map.new(:initial_capacity => 2) end |