mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
MDEV-11415 Remove excessive undo logging during ALTER TABLE…ALGORITHM=COPY Move a test from innodb.rename_table_debug to innodb.alter_copy. ha_innobase::extra(HA_EXTRA_BEGIN_ALTER_COPY): Register id-versioned tables so that mysql.transaction_registry will be updated, even for empty tables that are subjected to ALTER TABLE…ALGORITHM=COPY.
13 lines
359 B
Plaintext
13 lines
359 B
Plaintext
CREATE TABLE t1 (a SERIAL, b INT, c INT, d INT) ENGINE=InnoDB;
|
|
INSERT INTO t1 () VALUES ();
|
|
connect con1,localhost,root,,test;
|
|
SET DEBUG_SYNC='before_rename_table_commit SIGNAL renamed WAIT_FOR ever';
|
|
RENAME TABLE t1 TO t2;
|
|
connection default;
|
|
SET DEBUG_SYNC='now WAIT_FOR renamed';
|
|
disconnect con1;
|
|
SELECT * FROM t1;
|
|
a b c d
|
|
1 NULL NULL NULL
|
|
DROP TABLE t1;
|