From eb48418f2fb61017793fd8b30891af37cd538459 Mon Sep 17 00:00:00 2001 From: Justin Balthrop Date: Tue, 24 Nov 2009 10:12:52 -0800 Subject: [PATCH] add deadlock test --- lib/bdb/database.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bdb/database.rb b/lib/bdb/database.rb index 5038cc0..8004cb5 100644 --- a/lib/bdb/database.rb +++ b/lib/bdb/database.rb @@ -58,6 +58,10 @@ class Bdb::Database < Bdb::Base end end + def close_environment + environment.close + end + def count(field, key) with_cursor(db(field)) do |cursor| k, v = cursor.get(Tuple.dump(key), nil, Bdb::DB_SET)