diff options
Diffstat (limited to 'src/backend/access/common/bufmask.c')
-rw-r--r-- | src/backend/access/common/bufmask.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/access/common/bufmask.c b/src/backend/access/common/bufmask.c index 10253d33545..d880aef7bad 100644 --- a/src/backend/access/common/bufmask.c +++ b/src/backend/access/common/bufmask.c @@ -23,15 +23,17 @@ * mask_page_lsn * * In consistency checks, the LSN of the two pages compared will likely be - * different because of concurrent operations when the WAL is generated - * and the state of the page when WAL is applied. + * different because of concurrent operations when the WAL is generated and + * the state of the page when WAL is applied. Also, mask out checksum as + * masking anything else on page means checksum is not going to match as well. */ void -mask_page_lsn(Page page) +mask_page_lsn_and_checksum(Page page) { PageHeader phdr = (PageHeader) page; PageXLogRecPtrSet(phdr->pd_lsn, (uint64) MASK_MARKER); + phdr->pd_checksum = MASK_MARKER; } /* |