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:
heikki@hundin.mysql.fi 2003-10-28 15:55:18 +02:00
parent 7023694649
commit de6cc5f018

View file

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