about summary refs log tree commit homepage
path: root/lib/tdb/mt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb/mt.rb')
-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