Use faster form of running callbacks
This commit is contained in:
parent
ab1407cc5b
commit
a87b627297
|
@ -211,7 +211,7 @@ module ActiveRecord
|
|||
# calling +checkout+ on this pool.
|
||||
def checkin(conn)
|
||||
@connection_mutex.synchronize do
|
||||
conn.run_callbacks :checkin do
|
||||
conn._run_checkin_callbacks do
|
||||
@checked_out.delete conn
|
||||
@queue.signal
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue