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.
|
# calling +checkout+ on this pool.
|
||||||
def checkin(conn)
|
def checkin(conn)
|
||||||
@connection_mutex.synchronize do
|
@connection_mutex.synchronize do
|
||||||
conn.run_callbacks :checkin do
|
conn._run_checkin_callbacks do
|
||||||
@checked_out.delete conn
|
@checked_out.delete conn
|
||||||
@queue.signal
|
@queue.signal
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue