Skip to content

Commit 820bf7b

Browse files
author
Ajo Robert
committed
Bug #18075170 SQL NODE RESTART REQUIRED TO
AVOID DEADLOCK AFTER RESTORE Test Failure Fix.
1 parent 515b220 commit 820bf7b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mysql-test/r/myisam_recover.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ a
139139
1
140140
4
141141
Warnings:
142-
Error 145 Table './test/t1' is marked as crashed and should be repaired
142+
Error 145 Table 't1' is marked as crashed and should be repaired
143143
Error 1194 Table 't1' is marked as crashed and should be repaired
144144
Error 1034 Number of rows changed from 1 to 2
145145
ALTER TABLE t2 ADD val INT;

mysql-test/t/myisam_recover.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ connection default;
124124
--echo # middle of transaction, without aborting it.
125125

126126
connection default;
127+
--let $MYSQL_DATA_DIR=`select @@datadir`
127128

128129
create table t1 (a int, key(a)) engine=myisam;
129130
create table t2 (a int);
@@ -150,6 +151,7 @@ select * from t2;
150151
--echo # Without fix select from t1 will break the transaction. After the fix
151152
--echo # transaction should be active and should hold lock on table t2. Alter
152153
--echo # table from con2 will wait only if the transaction is not broken.
154+
--replace_result $MYSQL_DATA_DIR '' ./ '' test/ ''
153155
select * from t1;
154156

155157
connect(con2, localhost, root);

0 commit comments

Comments
 (0)