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
This commit is contained in:
David Heinemeier Hansson
2005-02-20 23:08:07 +00:00
parent ab3a813364
commit 656fe3ccb6

View File

@@ -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