aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-05-11 14:20:58 +0530
committerVipul A M <vipulnsward@gmail.com>2016-05-11 14:20:58 +0530
commit525fa7ef7ce02bf3bfd99058ea18547f21c4f715 (patch)
treebace6e88d600c0f7c0270f134f6ffbe187e332d3 /activerecord
parentb185db5d61ea9277f29ee0130db7062673f1a839 (diff)
parent64634ce61a6098fd0983252c094b81a5ec4aa5a5 (diff)
downloadrails-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')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb4
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