mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
addresses #1022
forgot to close cursor git-svn-id: file:///svn/mysql/tokudb-engine/src@5108 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
95a7f058d2
commit
80c5c9ceec
1 changed files with 5 additions and 1 deletions
|
@ -1263,10 +1263,14 @@ int ha_tokudb::estimate_num_rows(DB* db, u_int64_t* num_rows) {
|
|||
*num_rows = equal + greater;
|
||||
error = 0;
|
||||
cleanup:
|
||||
if (do_commit) {
|
||||
if (do_commit) {
|
||||
transaction->commit(transaction, 0);
|
||||
transaction = NULL;
|
||||
}
|
||||
if (crsr != NULL) {
|
||||
crsr->c_close(crsr);
|
||||
crsr = NULL;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue