method
clear_reloadable_connections
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
clear_reloadable_connections(raise_on_acquisition_timeout = true)public
Clears the cache which maps classes and re-connects connections that require reloading.
Raises:
-
ActiveRecord::ExclusiveConnectionTimeoutError if unable to gain ownership of all connections in the pool within a timeout interval (default duration is spec.db_config.checkout_timeout * 2 seconds).