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:
parent
e45d97217c
commit
4367d2f05c
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue