|
|
@ -2368,7 +2368,6 @@ row_create_table_for_mysql( |
|
|
|
(will be freed, or on DB_SUCCESS |
|
|
|
added to the data dictionary cache) */ |
|
|
|
trx_t* trx, /*!< in/out: transaction */ |
|
|
|
bool commit, /*!< in: if true, commit the transaction */ |
|
|
|
fil_encryption_t mode, /*!< in: encryption mode */ |
|
|
|
uint32_t key_id) /*!< in: encryption key_id */ |
|
|
|
{ |
|
|
@ -2398,10 +2397,6 @@ err_exit: |
|
|
|
#endif /* !DBUG_OFF */
|
|
|
|
dict_mem_table_free(table); |
|
|
|
|
|
|
|
if (commit) { |
|
|
|
trx_commit_for_mysql(trx); |
|
|
|
} |
|
|
|
|
|
|
|
trx->op_info = ""; |
|
|
|
|
|
|
|
return(DB_ERROR); |
|
|
@ -2446,7 +2441,7 @@ err_exit: |
|
|
|
err = dict_replace_tablespace_in_dictionary( |
|
|
|
table->space, table->name.m_name, |
|
|
|
fil_space_get_flags(table->space), |
|
|
|
path, trx, commit); |
|
|
|
path, trx); |
|
|
|
|
|
|
|
ut_free(path); |
|
|
|
|
|
|
@ -2472,10 +2467,6 @@ err_exit: |
|
|
|
DICT_ERR_IGNORE_NONE)) { |
|
|
|
|
|
|
|
dict_table_close_and_drop(trx, table); |
|
|
|
|
|
|
|
if (commit) { |
|
|
|
trx_commit_for_mysql(trx); |
|
|
|
} |
|
|
|
} else { |
|
|
|
dict_mem_table_free(table); |
|
|
|
} |
|
|
|