1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-31 17:02:12 +03:00

Fix ancient docs/comments thinko: XID comparison is mod 2^32, not 2^31.

Pointed out by Gianni Ciolli.
This commit is contained in:
Tom Lane
2013-12-12 12:40:00 -05:00
parent 52c342dd02
commit 17776250a5
2 changed files with 2 additions and 2 deletions

View File

@@ -305,7 +305,7 @@ TransactionIdPrecedes(TransactionId id1, TransactionId id2)
{
/*
* If either ID is a permanent XID then we can just do unsigned
* comparison. If both are normal, do a modulo-2^31 comparison.
* comparison. If both are normal, do a modulo-2^32 comparison.
*/
int32 diff;