diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-09-22 14:28:22 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-09-22 14:28:22 -0400 |
commit | 6a2fa09c0cba0e5a11854d733872ac18511f4c83 (patch) | |
tree | b624b88d21438c205e859d2c4d2a03f1c88a9b9a /src/backend/access/gist/gistxlog.c | |
parent | 7c75ef571579a3ad7a1d3ee909f11dba5e0b9440 (diff) | |
download | postgresql-6a2fa09c0cba0e5a11854d733872ac18511f4c83.tar.gz postgresql-6a2fa09c0cba0e5a11854d733872ac18511f4c83.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
-rw-r--r-- | src/backend/access/gist/gistxlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c index 4f4fe8fab53..7fd91ce640a 100644 --- a/src/backend/access/gist/gistxlog.c +++ b/src/backend/access/gist/gistxlog.c @@ -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); |