Skip to content
Browse files

Fix issue with uninitialized role in thread local variable.

Release 1.2.2
  • Loading branch information...
1 parent ab0ca84 commit 60bf1152a5ff099b0289c6813b0e6e73a4283471 @mperham mperham committed
Showing with 6 additions and 2 deletions.
  1. +4 −0 CHANGELOG
  2. +1 −1 lib/data_fabric/ar22.rb
  3. +1 −1 lib/data_fabric/version.rb
View
4 CHANGELOG
@@ -1,5 +1,9 @@
DataFabric changelog
+v1.2.2 - 2008-12-16
+
+- Fix multithreading issue with AR 2.2.
+
v1.2.1 - 2008-12-01
- Clean up gem of superfluous files, trims gem size from 160k to 50k.
View
2 lib/data_fabric/ar22.rb
@@ -143,7 +143,7 @@ def set_role(role)
end
def current_role
- Thread.current[:data_fabric_role]
+ Thread.current[:data_fabric_role] || 'slave'
end
def master
View
2 lib/data_fabric/version.rb
@@ -1,5 +1,5 @@
module DataFabric
module Version
- STRING = "1.2.1"
+ STRING = "1.2.2"
end
end

0 comments on commit 60bf115

Please sign in to comment.
Something went wrong with that request. Please try again.