Skip to content

Commit

Permalink
MDEV-7318: Fix a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed May 22, 2020
1 parent b934a34 commit 14f1453
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/r/innodb-alter-debug.result
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ CREATE TABLE t (c1 INT, c2 INT, KEY i2 (c2)) ENGINE=INNODB;
SET DEBUG_DBUG= '+d,ib_rename_index_fail1';
ALTER TABLE t RENAME INDEX i2 to x, ALGORITHM=INPLACE;
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;
8 changes: 4 additions & 4 deletions mysql-test/suite/innodb/t/innodb-alter-debug.test
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ reap;
UNLOCK TABLES;
DROP TABLE t1;

# Wait till all disconnects are completed
--source include/wait_until_count_sessions.inc

--echo #
--echo # MDEV-7318 RENAME INDEX
--echo #
Expand All @@ -141,6 +138,9 @@ CREATE TABLE t (c1 INT, c2 INT, KEY i2 (c2)) ENGINE=INNODB;
SET DEBUG_DBUG= '+d,ib_rename_index_fail1';
-- error ER_LOCK_DEADLOCK
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;

# Wait till all disconnects are completed
--source include/wait_until_count_sessions.inc

0 comments on commit 14f1453

Please sign in to comment.