Bug #18075170 SQL NODE RESTART REQUIRED TO

AVOID DEADLOCK AFTER RESTORE

Test Failure Fix.
This commit is contained in:
Ajo Robert 2015-05-12 20:27:26 +05:30
parent 515b2203c5
commit 820bf7b1f1
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);