method

try_to_checkout_new_connection

rails latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionPool
try_to_checkout_new_connection()
private

If the pool is not at a @size limit, establish new connection. Connecting to the DB is done outside main synchronized section.