Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix issue with uninitialized role in thread local variable.

Release 1.2.2
  • Loading branch information...
commit 60bf1152a5ff099b0289c6813b0e6e73a4283471 1 parent ab0ca84
@mperham authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.