We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb03010 commit addd034Copy full SHA for addd034
src/include/storage/checksum_impl.h
@@ -211,5 +211,5 @@ pg_checksum_page(char *page, BlockNumber blkno)
211
* Reduce to a uint16 (to fit in the pd_checksum field) with an offset of
212
* one. That avoids checksums of zero, which seems like a good idea.
213
*/
214
- return (uint16) ((checksum % 65536) + 1);
+ return (uint16) ((checksum % 65535) + 1);
215
}
0 commit comments