We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7544064 commit9598afaCopy 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
#defineOLDSERXID_MAX_PAGEMin(SLRU_PAGES_PER_SEGMENT * 0x10000 - 1, \
314
-(MaxTransactionId + 1) / OLDSERXID_ENTRIESPERPAGE - 1)
+(MaxTransactionId) / OLDSERXID_ENTRIESPERPAGE)
315
316
#defineOldSerXidNextPage(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
-elseif (diff<-((OLDSERXID_MAX_PAGE+1) /2))
+elseif (diff<-((int) (OLDSERXID_MAX_PAGE+1) /2))
771
diff+=OLDSERXID_MAX_PAGE+1;
772
returndiff<0;
773
}