We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7544064 commit 9598afaCopy full SHA for 9598afa
src/backend/storage/lmgr/predicate.c
@@ -311,7 +311,7 @@ static SlruCtlData OldSerXidSlruCtlData;
311
* transactions and the maximum that SLRU supports.
312
*/
313
#define OLDSERXID_MAX_PAGE Min(SLRU_PAGES_PER_SEGMENT * 0x10000 - 1, \
314
- (MaxTransactionId + 1) / OLDSERXID_ENTRIESPERPAGE - 1)
+ (MaxTransactionId) / OLDSERXID_ENTRIESPERPAGE)
315
316
#define OldSerXidNextPage(page) (((page) >= OLDSERXID_MAX_PAGE) ? 0 : (page) + 1)
317
@@ -767,7 +767,7 @@ OldSerXidPagePrecedesLogically(int p, int q)
767
diff = p - q;
768
if (diff >= ((OLDSERXID_MAX_PAGE + 1) / 2))
769
diff -= OLDSERXID_MAX_PAGE + 1;
770
- else if (diff < -((OLDSERXID_MAX_PAGE + 1) / 2))
+ else if (diff < -((int) (OLDSERXID_MAX_PAGE + 1) / 2))
771
diff += OLDSERXID_MAX_PAGE + 1;
772
return diff < 0;
773
}
0 commit comments