1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-7318: Fix a test case

This commit is contained in:
Marko Mäkelä
2020-05-22 19:56:55 +03:00
parent b934a34c46
commit 14f1453b35
2 changed files with 5 additions and 5 deletions

View File

@@ -105,5 +105,5 @@ CREATE TABLE t (c1 INT, c2 INT, KEY i2 (c2)) ENGINE=INNODB;
SET DEBUG_DBUG= '+d,ib_rename_index_fail1'; SET DEBUG_DBUG= '+d,ib_rename_index_fail1';
ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE; ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SET DEBUG_DBUG= '-d,ib_rename_index_fail1'; SET DEBUG_DBUG = @saved_debug_dbug;
DROP TABLE t; DROP TABLE t;

View File

@@ -130,9 +130,6 @@ reap;
UNLOCK TABLES; UNLOCK TABLES;
DROP TABLE t1; DROP TABLE t1;
# Wait till all disconnects are completed
--source include/wait_until_count_sessions.inc
--echo # --echo #
--echo # MDEV-7318 RENAME INDEX --echo # MDEV-7318 RENAME INDEX
--echo # --echo #
@@ -141,6 +138,9 @@ CREATE TABLE t (c1 INT, c2 INT, KEY i2 (c2)) ENGINE=INNODB;
SET DEBUG_DBUG= '+d,ib_rename_index_fail1'; SET DEBUG_DBUG= '+d,ib_rename_index_fail1';
-- error ER_LOCK_DEADLOCK -- error ER_LOCK_DEADLOCK
ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE; ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE;
SET DEBUG_DBUG= '-d,ib_rename_index_fail1'; SET DEBUG_DBUG = @saved_debug_dbug;
DROP TABLE t; DROP TABLE t;
# Wait till all disconnects are completed
--source include/wait_until_count_sessions.inc