Use faster form of running callbacks

This commit is contained in:
wycats 2010-06-04 09:47:37 -07:00
parent ab1407cc5b
commit a87b627297
1 changed files with 1 additions and 1 deletions

View File

@ -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