aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gin/ginxlog.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-09-22 14:28:22 -0400
committerRobert Haas <rhaas@postgresql.org>2017-09-22 14:33:18 -0400
commit1a44df007c9b9adc5e6082fc90fe68e615d38ecd (patch)
tree16c5bc54d5370cd0a14537718ffe77d3ecabb670 /src/backend/access/gin/ginxlog.c
parentc08c98df3d30c0d773d5624860145fb4215b84fb (diff)
downloadpostgresql-1a44df007c9b9adc5e6082fc90fe68e615d38ecd.tar.gz
postgresql-1a44df007c9b9adc5e6082fc90fe68e615d38ecd.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/gin/ginxlog.c')
-rw-r--r--src/backend/access/gin/ginxlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gin/ginxlog.c b/src/backend/access/gin/ginxlog.c
index 7ba04e324f6..92cafe950b6 100644
--- a/src/backend/access/gin/ginxlog.c
+++ b/src/backend/access/gin/ginxlog.c
@@ -770,7 +770,7 @@ gin_mask(char *pagedata, BlockNumber blkno)
Page page = (Page) pagedata;
GinPageOpaque opaque;
- mask_page_lsn(page);
+ mask_page_lsn_and_checksum(page);
opaque = GinPageGetOpaque(page);
mask_page_hint_bits(page);