Browse Source
MDEV-23805 Make Online DDL to Instant DDL when table is empty
MDEV-23805 Make Online DDL to Instant DDL when table is empty
- In ha_innobase::prepare_inplace_alter_table(), InnoDB should check whether the table is empty. If the table is empty then server should avoid downgrading the MDL after prepare phase. It is more like instant alter, does change only in dicationary and metadata. - Changed few debug test case to make non-empty DDL tablebb-10.4-MDEV-23766
23 changed files with 73 additions and 13 deletions
-
3mysql-test/suite/gcol/r/virtual_index_drop.result
-
2mysql-test/suite/gcol/t/virtual_index_drop.test
-
2mysql-test/suite/innodb/r/alter_candidate_key.result
-
2mysql-test/suite/innodb/r/alter_not_null_debug.result
-
2mysql-test/suite/innodb/r/alter_primary_key.result
-
1mysql-test/suite/innodb/r/ddl_purge.result
-
2mysql-test/suite/innodb/r/innodb-alter-tempfile.result
-
5mysql-test/suite/innodb/r/innodb-index-debug.result
-
1mysql-test/suite/innodb/r/innodb-index-online.result
-
3mysql-test/suite/innodb/r/instant_alter_debug.result
-
2mysql-test/suite/innodb/t/alter_candidate_key.test
-
2mysql-test/suite/innodb/t/alter_not_null_debug.test
-
1mysql-test/suite/innodb/t/alter_primary_key.test
-
1mysql-test/suite/innodb/t/ddl_purge.test
-
2mysql-test/suite/innodb/t/innodb-alter-tempfile.test
-
2mysql-test/suite/innodb/t/innodb-index-debug.test
-
1mysql-test/suite/innodb/t/innodb-index-online.test
-
3mysql-test/suite/innodb/t/instant_alter_debug.test
-
2mysql-test/suite/innodb_fts/r/misc_debug.result
-
1mysql-test/suite/innodb_fts/t/misc_debug.test
-
3sql/handler.h
-
7sql/sql_table.cc
-
36storage/innobase/handler/handler0alter.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue