Commit e809982
committed
MDEV-37558 Multi-batch recovery discards needed doublewrite pages
Problem:
=======
In multi-batch recovery, pages with LSN > recv_sys.scanned_lsn
are discarded from doublewrite buffer. Later when
reading a corrupted page from disk, corresponding dblwr page
is no longer available. This leads to failure of InnoDB recovery.
Solution:
=========
In buf_dblwr_t::recover(): Replace recv_sys.scanned_lsn
with max_lsn when checking if a page's LSN is within
the recovery range.1 parent 979ce5f commit e809982
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
0 commit comments