mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
addresses #814
remove leak of status_block git-svn-id: file:///svn/mysql/tokudb-engine/src@4940 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
3ef8c9d2cb
commit
43d0540e71
1 changed files with 2 additions and 0 deletions
|
@ -3595,6 +3595,8 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in
|
|||
if (error) { goto quit_status; }
|
||||
quit_status:
|
||||
if (!error) { txn->commit(txn, 0); }
|
||||
else { txn->abort(txn); }
|
||||
status_block->close(status_block, 0);
|
||||
}
|
||||
if (tokudb_debug & TOKUDB_DEBUG_OPEN)
|
||||
TOKUDB_TRACE("create:%s:error=%d\n", newname, error);
|
||||
|
|
Loading…
Reference in a new issue