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
190 191 192 |
# File 'lib/fibered_mysql2/fibered_database_connection_pool.rb', line 190 def cached_connections @reserved_connections end |
#checkout ⇒ Object
198 199 200 201 202 203 204 205 |
# File 'lib/fibered_mysql2/fibered_database_connection_pool.rb', line 198 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
194 195 196 |
# File 'lib/fibered_mysql2/fibered_database_connection_pool.rb', line 194 def current_connection_id ActiveRecord::Base.connection_id ||= Fiber.current.object_id end |