diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-11-26 12:50:27 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-11-26 12:50:27 +0200 |
commit | 2a31b82831c84aae7f23d94a8c646cd9d4d613c8 (patch) | |
tree | 54aef92832a6f7af3d22a6f270c3a1cac8072535 /sql/table.cc | |
parent | a81fceafb125d10639b613e558546eea6438b45a (diff) | |
download | mariadb-git-2a31b82831c84aae7f23d94a8c646cd9d4d613c8.tar.gz |
MDEV-17816 Crash in TRUNCATE TABLE when table creation fails
The error handling in the MDEV-13564 TRUNCATE TABLE was broken
when an error occurred during table creation.
row_create_index_for_mysql(): Do not drop the table on error.
fts_create_one_common_table(), fts_create_one_index_table():
Do drop the table on error.
create_index(), create_table_info_t::create_table():
Let the caller handle the index creation errors.
ha_innobase::create(): If create_table_info_t::create_table()
fails, drop the incomplete table, roll back the transaction,
and finally return an error to the caller.
Diffstat (limited to 'sql/table.cc')
0 files changed, 0 insertions, 0 deletions