Commit 710418eb authored by unknown's avatar unknown

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


innobase/row/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
parent 0152ed02
...@@ -3222,8 +3222,14 @@ rec_loop: ...@@ -3222,8 +3222,14 @@ rec_loop:
latest version of the record */ latest version of the record */
} else if (index == clust_index) { } 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)) { trx->read_view)) {
err = row_sel_build_prev_vers_for_mysql( err = row_sel_build_prev_vers_for_mysql(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment