We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 862ab91 + 7d512c5 commit 95deab7Copy full SHA for 95deab7
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
@@ -872,7 +872,9 @@ def acquire_connection(checkout_timeout)
872
#--
873
# if owner_thread param is omitted, this must be called in synchronize block
874
def remove_connection_from_thread_cache(conn, owner_thread = conn.owner)
875
- @leases[owner_thread].clear(conn)
+ if owner_thread
876
+ @leases[owner_thread].clear(conn)
877
+ end
878
end
879
alias_method :release, :remove_connection_from_thread_cache
880
0 commit comments