mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-14245 tokudb_alter_table.drop_add_pk_part_104 fails
"tokudb_alter_table.drop_add_pk_part_104 leaves a temporary file behind" Fixed by copying 3 lines from 10.1 to 10.0 that cleaned up the temporary file for partitioning tables.
This commit is contained in:
@@ -8840,7 +8840,9 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
|
|||||||
|
|
||||||
TODO don't create the frm in the first place
|
TODO don't create the frm in the first place
|
||||||
*/
|
*/
|
||||||
deletefrm(alter_ctx.get_tmp_path());
|
const char *path= alter_ctx.get_tmp_path();
|
||||||
|
table->file->ha_create_partitioning_metadata(path, NULL, CHF_DELETE_FLAG);
|
||||||
|
deletefrm(path);
|
||||||
my_free(const_cast<uchar*>(frm.str));
|
my_free(const_cast<uchar*>(frm.str));
|
||||||
goto end_inplace;
|
goto end_inplace;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user