instance method
bulk_make_new_connections
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
bulk_make_new_connections(num_new_conns_needed)
No documentation comment.
Parameters
-
num_new_conns_neededreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 667
def bulk_make_new_connections(num_new_conns_needed)
num_new_conns_needed.times do
# try_to_checkout_new_connection will not exceed pool's @size limit
if new_conn = try_to_checkout_new_connection
# make the new_conn available to the starving threads stuck @available Queue
checkin(new_conn)
end
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 667
· View on GitHub
· Improve this page
· Find usages on GitHub