Module: FiberedMysql2::FiberedDatabaseConnectionPool::Adapter_4_2
- Defined in:
- lib/fibered_mysql2/fibered_database_connection_pool.rb
Instance Method Summary collapse
Instance Method Details
#cached_connections ⇒ Object
124 125 126 |
# File 'lib/fibered_mysql2/fibered_database_connection_pool.rb', line 124 def cached_connections @reserved_connections end |
#checkout ⇒ Object
132 133 134 135 136 137 138 139 |
# File 'lib/fibered_mysql2/fibered_database_connection_pool.rb', line 132 def checkout begin reap_connections rescue => ex ActiveRecord::Base.logger.error("Exception occurred while executing reap_connections: #{ex}") end super end |
#current_connection_id ⇒ Object
128 129 130 |
# File 'lib/fibered_mysql2/fibered_database_connection_pool.rb', line 128 def current_connection_id ActiveRecord::Base.connection_id ||= Fiber.current.object_id end |