1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00

For wal_consistency_checking, mask page checksum as well as page LSN.

If the LSN is different, the checksum will be different, too.

Ashwin Agrawal, reviewed by Michael Paquier and Kuntal Ghosh

Discussion: http://postgr.es/m/CALfoeis5iqrAU-+JAN+ZzXkpPr7+-0OAGv7QUHwFn=-wDy4o4Q@mail.gmail.com
This commit is contained in:
Robert Haas
2017-09-22 14:28:22 -04:00
parent 7c75ef5715
commit 6a2fa09c0c
11 changed files with 16 additions and 14 deletions

View File

@ -541,7 +541,7 @@ generic_redo(XLogReaderState *record)
void
generic_mask(char *page, BlockNumber blkno)
{
mask_page_lsn(page);
mask_page_lsn_and_checksum(page);
mask_unused_space(page);
}