instance method
checkin
Ruby on Rails 2.3.18
Since v2.2.3Signature
checkin(conn)
Check-in a database connection back into the pool, indicating that you no longer need this connection.
conn: an AbstractAdapter object, which was obtained by earlier by calling checkout on this pool.
Parameters
-
connreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 210
def checkin(conn)
@connection_mutex.synchronize do
conn.run_callbacks :checkin
@checked_out.delete conn
@queue.signal
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 210
· View on GitHub
· Improve this page
· Find usages on GitHub