add deadlock test

master
Justin Balthrop 2009-11-24 10:12:52 -08:00
parent b0bee81362
commit eb48418f2f
1 changed files with 4 additions and 0 deletions

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)