mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +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:
@ -352,14 +352,14 @@ gist_mask(char *pagedata, BlockNumber blkno)
|
||||
{
|
||||
Page page = (Page) pagedata;
|
||||
|
||||
mask_page_lsn(page);
|
||||
mask_page_lsn_and_checksum(page);
|
||||
|
||||
mask_page_hint_bits(page);
|
||||
mask_unused_space(page);
|
||||
|
||||
/*
|
||||
* NSN is nothing but a special purpose LSN. Hence, mask it for the same
|
||||
* reason as mask_page_lsn.
|
||||
* reason as mask_page_lsn_and_checksum.
|
||||
*/
|
||||
GistPageSetNSN(page, (uint64) MASK_MARKER);
|
||||
|
||||
|
Reference in New Issue
Block a user