mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Avoid not needed renames in ALTER TABLE
Removed not needed table renames when doing ALTER TABLE when engine changes and both of the following is true: - Either new or old engine does not store the table in files - Neither old or new engine uses files from another engine We also skip renames when ALTER TABLE does an explicit rename This improves performance, especially for engines where rename is a slow operation (like the upcoming S3 engine)
This commit is contained in:
@@ -140,6 +140,8 @@ static const uint NO_HA_TABLE= 1 << 4;
|
||||
static const uint SKIP_SYMDIR_ACCESS= 1 << 5;
|
||||
/** Don't check foreign key constraints while renaming table */
|
||||
static const uint NO_FK_CHECKS= 1 << 6;
|
||||
/* Don't delete .par table in quick_rm_table() */
|
||||
static const uint NO_PAR_TABLE= 1 << 7;
|
||||
|
||||
uint filename_to_tablename(const char *from, char *to, size_t to_length,
|
||||
bool stay_quiet = false);
|
||||
|
||||
Reference in New Issue
Block a user