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:33:18 -0400 |
commit | 1a44df007c9b9adc5e6082fc90fe68e615d38ecd (patch) | |
tree | 16c5bc54d5370cd0a14537718ffe77d3ecabb670 /src/backend/access/hash/hash_xlog.c | |
parent | c08c98df3d30c0d773d5624860145fb4215b84fb (diff) |
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/hash/hash_xlog.c')
-rw-r--r-- | src/backend/access/hash/hash_xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/hash/hash_xlog.c b/src/backend/access/hash/hash_xlog.c index 67a856c1427..f19f6fdfafa 100644 --- a/src/backend/access/hash/hash_xlog.c +++ b/src/backend/access/hash/hash_xlog.c @@ -1263,7 +1263,7 @@ hash_mask(char *pagedata, BlockNumber blkno) HashPageOpaque opaque; int pagetype; - mask_page_lsn(page); + mask_page_lsn_and_checksum(page); mask_page_hint_bits(page); mask_unused_space(page); |