From 656fe3ccb609669fe76b48a07446618742e71970 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 20 Feb 2005 23:08:07 +0000 Subject: All the memory-based stores should use a mutex #611 [inspire22] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index 98dd9c9df6..c1c78147e3 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -305,13 +305,13 @@ module ActionController #:nodoc: class DRbStore < MemoryStore #:nodoc: def initialize(address = 'druby://localhost:9192') - @data = DRbObject.new(nil, address) + @data, @mutex = DRbObject.new(nil, address), Mutex.new end end class MemCacheStore < MemoryStore #:nodoc: def initialize(address = 'localhost') - @data = MemCache.new(address) + @data, @mutex = MemCache.new(address), Mutex.new end end -- cgit v1.2.3