mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
Closes #343
Lock tree freed during db->close. git-svn-id: file:///svn/tokudb@2122 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
22edd66d28
commit
d67059511a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue