about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-10 18:05:41 -0800
committerEric Wong <normalperson@yhbt.net>2010-12-10 18:05:41 -0800
commit56378c0fc1704cab0e0e1e6800befaf84e419b43 (patch)
tree704cce47b2012c795f36f1a1dbf66d4517c18e03 /lib
parent93e36dd664a9d3f95456769ca2d29c48503bd0e7 (diff)
downloadruby-tdb-56378c0fc1704cab0e0e1e6800befaf84e419b43.tar.gz
Too tricky to support, for now.
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/mt.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/tdb/mt.rb b/lib/tdb/mt.rb
index 7e7a09d..7ff2196 100644
--- a/lib/tdb/mt.rb
+++ b/lib/tdb/mt.rb
@@ -12,19 +12,13 @@ module TDB::MT
     lockall trylockall unlockall
     lockall_read trylockall_read unlockall_read
     lockall_mark lockall_unmark
-    clear
+    clear each
   )
   wrap_methods << :repack if TDB.method_defined?(:repack)
   wrap_methods.each do |meth|
     eval "def #{meth}(*args); @lock.synchronize { super }; end"
   end
 
-  def each(&block)
-    @lock.synchronize do
-      super { |k,v| @lock.exclusive_unlock { yield(k,v) } }
-    end
-  end
-
   def threadsafe?
     true
   end