Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix issue with thread-local connections.

  • Loading branch information...
commit 36ceceb26c418ff6b99d5f32fd3ac474a10cc75f 1 parent 0937a74
Alexander Staubo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/multidb/balancer.rb
View
2  lib/multidb/balancer.rb
@@ -84,7 +84,7 @@ def use(name, &block)
end
def current_connection
- Thread.current[:multidb_connection] ||= @default_candidate.connection
+ Thread.current[:multidb_connection] || @default_candidate.connection
end
class << self
Please sign in to comment.
Something went wrong with that request. Please try again.