Lock tree freed during db->close.

git-svn-id: file:///svn/tokudb@2122 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2008-02-06 16:20:55 +00:00
parent 22edd66d28
commit d67059511a

View file

@ -933,6 +933,10 @@ static int toku_db_close(DB * db, u_int32_t flags) {
int r = toku_close_brt(db->i->brt);
if (r != 0)
return r;
if (db->i->lt) {
r = toku_lt_close(db->i->lt);
if (r!=0) return r;
}
// printf("%s:%d %d=__toku_db_close(%p)\n", __FILE__, __LINE__, r, db);
int is_panicked = env_is_panicked(db->dbenv); // Even if panicked, let's close as much as we can.
env_unref(db->dbenv);