File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 139
139
1
140
140
4
141
141
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
143
143
Error 1194 Table 't1' is marked as crashed and should be repaired
144
144
Error 1034 Number of rows changed from 1 to 2
145
145
ALTER TABLE t2 ADD val INT;
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ connection default;
124
124
--echo # middle of transaction, without aborting it.
125
125
126
126
connection default;
127
+ --let $MYSQL_DATA_DIR=`select @@datadir`
127
128
128
129
create table t1 (a int, key(a)) engine=myisam;
129
130
create table t2 (a int);
@@ -150,6 +151,7 @@ select * from t2;
150
151
--echo # Without fix select from t1 will break the transaction. After the fix
151
152
--echo # transaction should be active and should hold lock on table t2. Alter
152
153
--echo # table from con2 will wait only if the transaction is not broken.
154
+ --replace_result $MYSQL_DATA_DIR '' ./ '' test/ ''
153
155
select * from t1;
154
156
155
157
connect(con2, localhost, root);
You can’t perform that action at this time.
0 commit comments