add deadlock test
This commit is contained in:
parent
b0bee81362
commit
eb48418f2f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue