Permalink
Browse files

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
  • Loading branch information...
1 parent ab3a813 commit 656fe3ccb609669fe76b48a07446618742e71970 @dhh dhh committed Feb 20, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/caching.rb
@@ -305,13 +305,13 @@ def delete(name, options = {}) #: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

0 comments on commit 656fe3c

Please sign in to comment.