add deadlock test

This commit is contained in:
Justin Balthrop 2009-11-24 10:12:52 -08:00
parent b0bee81362
commit eb48418f2f

View file

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