Commit 820bf7b1 authored by Ajo Robert's avatar Ajo Robert

Bug #18075170 SQL NODE RESTART REQUIRED TO

AVOID DEADLOCK AFTER RESTORE

Test Failure Fix.
parent 515b2203
......@@ -139,7 +139,7 @@ a
1
4
Warnings:
Error 145 Table './test/t1' is marked as crashed and should be repaired
Error 145 Table 't1' is marked as crashed and should be repaired
Error 1194 Table 't1' is marked as crashed and should be repaired
Error 1034 Number of rows changed from 1 to 2
ALTER TABLE t2 ADD val INT;
......
......@@ -124,6 +124,7 @@ connection default;
--echo # middle of transaction, without aborting it.
connection default;
--let $MYSQL_DATA_DIR=`select @@datadir`
create table t1 (a int, key(a)) engine=myisam;
create table t2 (a int);
......@@ -150,6 +151,7 @@ select * from t2;
--echo # Without fix select from t1 will break the transaction. After the fix
--echo # transaction should be active and should hold lock on table t2. Alter
--echo # table from con2 will wait only if the transaction is not broken.
--replace_result $MYSQL_DATA_DIR '' ./ '' test/ ''
select * from t1;
connect(con2, localhost, root);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment