1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Revert MDEV-25292 Atomic CREATE OR REPLACE TABLE

Specifically:

Revert "MDEV-29664 Assertion `!n_mysql_tables_in_use' failed in innobase_close_connection"
This reverts commit ba875e9396.

Revert "MDEV-29620 Assertion `next_insert_id == 0' failed in handler::ha_external_lock"
This reverts commit aa08a7442a.

Revert "MDEV-29628 Memory leak after CREATE OR REPLACE with foreign key"
This reverts commit c579d66ba6.

Revert "MDEV-29609 create_not_windows test fails with different result"
This reverts commit cb583b2f1b.

Revert "MDEV-29544 SIGSEGV in HA_CREATE_INFO::finalize_locked_tables"
This reverts commit dcd66c3814.

Revert "MDEV-28933 CREATE OR REPLACE fails to recreate same constraint name"
This reverts commit cf6c517632.

Revert "MDEV-28933 Moved RENAME_CONSTRAINT_IDS to include/sql_funcs.h"
This reverts commit f1e1c1335b.

Revert "MDEV-28956 Locking is broken if CREATE OR REPLACE fails under LOCK TABLES"
This reverts commit a228ec80e3.

Revert "MDEV-25292 gcol.gcol_bugfixes --ps fix"
This reverts commit 24fff8267d.

Revert "MDEV-25292 Disable atomic replace for slave-generated or-replace"
This reverts commit 2af15914cb.

Revert "MDEV-25292 backup_log improved"
This reverts commit 34398a20b5.

Revert "MDEV-25292 Atomic CREATE OR REPLACE TABLE"
This reverts commit 93c8252f02.

Revert "MDEV-25292 Table_name class for (db, table_name, alias)"
This reverts commit d145dda9c7.

Revert "MDEV-25292 ha_table_exists() cleanup and improvement"
This reverts commit 409b8a86de.

Revert "MDEV-25292 Cleanups"
This reverts commit 595dad83ad.

Revert "MDEV-25292 Refactoring: moved select_field_count into Alter_info."
This reverts commit f02af1d229.
This commit is contained in:
Sergei Golubchik
2022-10-27 22:18:51 +02:00
parent d15260990d
commit 2bd41fc5bf
92 changed files with 1386 additions and 9510 deletions

View File

@ -7,7 +7,7 @@
# non-partitioned testing
--echo #
--echo # Testing normal tables
--echo # Testing with normal tables
--echo #
eval create table t1 (a int) engine=myisam $part_int;
@ -20,8 +20,6 @@ repair table t1;
optimize table t1;
drop table t1;
--source backup_log_print.inc
eval create table t1_innodb (a int) engine=innodb $part_int;
insert into t1_innodb values (1),(2);
alter table t1_innodb add column b int;
@ -32,8 +30,6 @@ repair table t1_innodb;
optimize table t1_innodb;
drop table t1_innodb;
--source backup_log_print.inc
--echo #
--echo # Testing with temporary tables (should not be logged)
--echo #
@ -45,8 +41,6 @@ rename table tmp_t11 to tmp_t10;
truncate table tmp_t10;
drop table tmp_t10;
--source backup_log_print.inc
--echo #
--echo # Testing with mix of normal and temporary tables
--echo #
@ -60,8 +54,6 @@ eval create table t21 (a int) $part_int;
drop temporary table if exists tmp_t21,t21;
drop table if exists tmp_t21,t21;
--source backup_log_print.inc
--echo #
--echo # Testing create select
--echo #
@ -76,8 +68,6 @@ eval create or replace table t31 (a int primary key) $part_int select * from t30
eval create table t32 (a int) $part_int;
drop table if exists t30,t31,t32,tmp_t30;
--source backup_log_print.inc
--echo #
--echo # Testing create LIKE
--echo #
@ -91,8 +81,6 @@ create or replace table t42 like t41;
show create table t42;
drop table t40, t41, t42;
--source backup_log_print.inc
--echo #
--echo # Testing rename
--echo #
@ -103,8 +91,6 @@ rename table t50 to t52, t51 to t53;
rename table t52 to tmp, t53 to t52, tmp to t53;
drop table t52,t53;
--source backup_log_print.inc
--echo #
--echo # Testing enable/disable keys
--echo #
@ -121,8 +107,6 @@ INSERT INTO t61 VALUES(1),(2),(3);
ALTER TABLE t61 DISABLE KEYS;
DROP TABLE t61;
--source backup_log_print.inc
--echo #
--echo # Testing load data
--echo #
@ -144,8 +128,6 @@ insert into t71 select * from t70;
unlock tables;
drop table t70,t71;
--source backup_log_print.inc
--echo #
--echo # Testing strange table names
--echo #
@ -153,8 +135,6 @@ drop table t70,t71;
eval create table `t 1` (a int) $part_int;
drop table `t 1`;
--source backup_log_print.inc
--echo #
--echo # Testing views and triggers
--echo #
@ -166,8 +146,6 @@ drop trigger trg;
drop view v1;
drop table t80;
--source backup_log_print.inc
--echo #
--echo # Testing alter to a new storage engine
--echo #
@ -175,5 +153,3 @@ drop table t80;
eval create table t85 (a int primary key, b int) engine=myisam $part_int;
alter table t85 engine=innodb;
drop table t85;
--source backup_log_print.inc