Commit 8f8f39e8 authored by Yoni Fogel's avatar Yoni Fogel

Closes #343

Lock tree freed during db->close.

git-svn-id: file:///svn/tokudb@2122 c7de825b-a66e-492c-adef-691d508d4ae1
parent ff9e497d
...@@ -933,6 +933,10 @@ static int toku_db_close(DB * db, u_int32_t flags) { ...@@ -933,6 +933,10 @@ static int toku_db_close(DB * db, u_int32_t flags) {
int r = toku_close_brt(db->i->brt); int r = toku_close_brt(db->i->brt);
if (r != 0) if (r != 0)
return r; 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); // 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. int is_panicked = env_is_panicked(db->dbenv); // Even if panicked, let's close as much as we can.
env_unref(db->dbenv); env_unref(db->dbenv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment