diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-11-11 12:56:33 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-11-11 15:12:30 +0530 |
commit | 33b64f89803042849b16089754506532a46a7eff (patch) | |
tree | 2e8f583e45f453fd04c87541e8642981ac1eb3ba /mysql-test/suite/innodb/t/innodb-index-debug.test | |
parent | 3480c3f95b27c8f3e6f4ecbe6262e5b80109c0d4 (diff) | |
download | mariadb-git-bb-10.6-MDEV-23805.tar.gz |
MDEV-23805 Make Online DDL to Instant DDL when table is emptybb-10.6-MDEV-23805
- 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 table
Diffstat (limited to 'mysql-test/suite/innodb/t/innodb-index-debug.test')
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-index-debug.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/t/innodb-index-debug.test b/mysql-test/suite/innodb/t/innodb-index-debug.test index 9083dc80720..204bdfe5540 100644 --- a/mysql-test/suite/innodb/t/innodb-index-debug.test +++ b/mysql-test/suite/innodb/t/innodb-index-debug.test @@ -96,6 +96,7 @@ drop table t1; # Log file creation failure. create table t1(k1 int auto_increment primary key, k2 char(200),k3 char(200))engine=innodb; +INSERT INTO t1 VALUES(1, "test", "test"); SET DEBUG_SYNC= 'row_merge_after_scan SIGNAL opened WAIT_FOR flushed'; send ALTER TABLE t1 FORCE, ADD COLUMN k4 int; @@ -122,6 +123,7 @@ drop table t480; --echo # CREATE TABLE t1 (j INT UNIQUE, i INT UNIQUE) ENGINE=InnoDB; +INSERT INTO t1 VALUES(2, 2); --connect (con1,localhost,root,,test) SET DEBUG_SYNC='row_log_table_apply1_before SIGNAL built WAIT_FOR log'; --send |