mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
row0sel.c:
If innodb_force_recovery >= 5, do not try to fetch an old version of a clustered index record: this reduces crashes when dumping tables from a corrupt database
This commit is contained in:
parent
7023694649
commit
de6cc5f018
1 changed files with 8 additions and 2 deletions
|
@ -3222,8 +3222,14 @@ rec_loop:
|
|||
latest version of the record */
|
||||
|
||||
} else if (index == clust_index) {
|
||||
|
||||
if (!lock_clust_rec_cons_read_sees(rec, index,
|
||||
|
||||
/* Fetch a previous version of the row if the current
|
||||
one is not visible in the snapshot; if we have a very
|
||||
high force recovery level set, we try to avoid crashes
|
||||
by skipping this lookup */
|
||||
|
||||
if (srv_force_recovery < 5
|
||||
&& !lock_clust_rec_cons_read_sees(rec, index,
|
||||
trx->read_view)) {
|
||||
|
||||
err = row_sel_build_prev_vers_for_mysql(
|
||||
|
|
Loading…
Add table
Reference in a new issue