From 46555521a290a2382c671e8d6095ed967c7edf56 Mon Sep 17 00:00:00 2001 From: Tahsin Hasan Date: Fri, 6 Nov 2020 20:23:52 +0600 Subject: [PATCH] Incorrect comment on cache thread mapping --- .../connection_adapters/abstract/connection_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 988ab5ec92566..da48ddc33ee33 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -381,7 +381,7 @@ def initialize(pool_config) # registry of which thread owns which connection. Connection ownership is tracked by # the +connection.owner+ attr on each +connection+ instance. # The invariant works like this: if there is mapping of thread => conn, - # then that +thread+ does indeed own that +conn+. However, an absence of a such + # then that +thread+ does indeed own that +conn+. However, an absence of such # mapping does not mean that the +thread+ doesn't own the said connection. In # that case +conn.owner+ attr should be consulted. # Access and modification of @thread_cached_conns does not require