mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Don't report errors from open_table() twice
This commit is contained in:
parent
d853042b5f
commit
be6ae0bb6b
5 changed files with 2 additions and 7 deletions
|
@ -500,7 +500,6 @@ call mtr.add_suppression("Checking table");
|
|||
insert delayed into t1 values (2,2);
|
||||
Warnings:
|
||||
Error 145 Table './test/t1' is marked as crashed and should be repaired
|
||||
Error 1194 Table 't1' is marked as crashed and should be repaired
|
||||
Error 1034 1 client is using or hasn't closed the table properly
|
||||
insert delayed into t1 values (3,3);
|
||||
flush tables t1;
|
||||
|
|
|
@ -87,7 +87,6 @@ a
|
|||
6
|
||||
Warnings:
|
||||
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 3 to 6
|
||||
#
|
||||
# Cleanup
|
||||
|
@ -140,7 +139,6 @@ a
|
|||
4
|
||||
Warnings:
|
||||
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
|
||||
connect con2, localhost, root;
|
||||
ALTER TABLE t2 ADD val INT;
|
||||
|
|
|
@ -27,7 +27,6 @@ ThursdayMorningsMarket
|
|||
ThursdayMorningsMarketb
|
||||
Warnings:
|
||||
Error 145 t_corrupted2' is marked as crashed and should be repaired
|
||||
Error 1194 t_corrupted2' is marked as crashed and should be repaired
|
||||
Error 1034 1 client is using or hasn't closed the table properly
|
||||
Error 1034 Wrong base information on indexpage at page: 1
|
||||
select * from t_corrupted2;
|
||||
|
|
|
@ -18,7 +18,6 @@ a
|
|||
11
|
||||
Warnings:
|
||||
Error 145 Table 't1_will_crash' is marked as crashed and should be repaired
|
||||
Error 1194 Table 't1_will_crash' is marked as crashed and should be repaired
|
||||
Error 1034 1 client is using or hasn't closed the table properly
|
||||
Error 1034 Size of indexfile is: 1024 Should be: 2048
|
||||
Error 1034 Size of datafile is: 77 Should be: 7
|
||||
|
@ -48,7 +47,6 @@ a
|
|||
11
|
||||
Warnings:
|
||||
Error 145 Table 't1_will_crash#P#p1' is marked as crashed and should be repaired
|
||||
Error 1194 Table 't1_will_crash' is marked as crashed and should be repaired
|
||||
Error 1034 1 client is using or hasn't closed the table properly
|
||||
Error 1034 Size of indexfile is: 1024 Should be: 2048
|
||||
Error 1034 Size of datafile is: 28 Should be: 7
|
||||
|
|
|
@ -3468,7 +3468,8 @@ partititon_err:
|
|||
/* Set a flag if the table is crashed and it can be auto. repaired */
|
||||
share->crashed= (outparam->file->auto_repair(ha_err) &&
|
||||
!(ha_open_flags & HA_OPEN_FOR_REPAIR));
|
||||
outparam->file->print_error(ha_err, MYF(0));
|
||||
if (!thd->is_error())
|
||||
outparam->file->print_error(ha_err, MYF(0));
|
||||
error_reported= TRUE;
|
||||
|
||||
if (ha_err == HA_ERR_TABLE_DEF_CHANGED)
|
||||
|
|
Loading…
Reference in a new issue