1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused param 'conn' from ConnectionPool#release

This commit is contained in:
Mindaugas Mozūras 2014-06-23 20:55:40 +03:00
parent e45d97217c
commit 4367d2f05c

View file

@ -364,7 +364,7 @@ module ActiveRecord
conn.expire
end
release conn, owner
release owner
@available.add conn
end
@ -377,7 +377,7 @@ module ActiveRecord
@connections.delete conn
@available.delete conn
release conn, conn.owner
release conn.owner
@available.add checkout_new_connection if @available.any_waiting?
end
@ -425,7 +425,7 @@ module ActiveRecord
end
end
def release(conn, owner)
def release(owner)
thread_id = owner.object_id
@reserved_connections.delete thread_id