Commit 4035b8da authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2768], fix crash

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21627 c7de825b-a66e-492c-adef-691d508d4ae1
parent 12e9e625
......@@ -827,10 +827,6 @@ static bool tokudb_show_data_size(THD * thd, stat_print_fn * stat_print, bool ex
error = 0;
cleanup:
if (curr_db) {
int r = curr_db->close(curr_db, 0);
assert(r==0);
}
if (tmp_cursor) {
int r = tmp_cursor->c_close(tmp_cursor);
assert(r==0);
......@@ -839,6 +835,10 @@ static bool tokudb_show_data_size(THD * thd, stat_print_fn * stat_print, bool ex
int r = tmp_table_cursor->c_close(tmp_table_cursor);
assert(r==0);
}
if (curr_db) {
int r = curr_db->close(curr_db, 0);
assert(r==0);
}
if (txn) {
commit_txn(txn, 0);
}
......
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