diff options
author | Michael Paquier | 2020-03-05 23:15:29 +0000 |
---|---|---|
committer | Michael Paquier | 2020-03-05 23:15:29 +0000 |
commit | addd034ae1795d0a99305b294e4dce44c6b1dfd8 (patch) | |
tree | 864eb6bed9fdf32950e9e7241f536ecc1ec4c762 | |
parent | bb03010b9f0766e10399174fe850b2506907c4e4 (diff) |
Fix page-level checksum calculation in checksum_impl.h
Issue introduced by me, as of 0065174.
Reported-by: David Steele
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | src/include/storage/checksum_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/checksum_impl.h b/src/include/storage/checksum_impl.h index 2f81cdf5b5..364acfafd2 100644 --- a/src/include/storage/checksum_impl.h +++ b/src/include/storage/checksum_impl.h @@ -211,5 +211,5 @@ pg_checksum_page(char *page, BlockNumber blkno) * Reduce to a uint16 (to fit in the pd_checksum field) with an offset of * one. That avoids checksums of zero, which seems like a good idea. */ - return (uint16) ((checksum % 65536) + 1); + return (uint16) ((checksum % 65535) + 1); } |