Content-Length: 254148 | pFad | http://github.com/postgrespro/postgres_cluster/commit/addd034ae1795d0a99305b294e4dce44c6b1dfd8

B7 Fix page-level checksum calculation in checksum_impl.h · postgrespro/postgres_cluster@addd034 · GitHub
Skip to content

Commit addd034

Browse files
committed
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/1cf30561-7dad-dc6e-9fc3-5c456948cfeb@pgmasters.net
1 parent bb03010 commit addd034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/checksum_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,5 @@ pg_checksum_page(char *page, BlockNumber blkno)
211211
* Reduce to a uint16 (to fit in the pd_checksum field) with an offset of
212212
* one. That avoids checksums of zero, which seems like a good idea.
213213
*/
214-
return (uint16) ((checksum % 65536) + 1);
214+
return (uint16) ((checksum % 65535) + 1);
215215
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/addd034ae1795d0a99305b294e4dce44c6b1dfd8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy