File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ static SlruCtlData OldSerXidSlruCtlData;
311311 * transactions and the maximum that SLRU supports.
312312 */
313313#define OLDSERXID_MAX_PAGE Min(SLRU_PAGES_PER_SEGMENT * 0x10000 - 1, \
314- (MaxTransactionId + 1 ) / OLDSERXID_ENTRIESPERPAGE - 1 )
314+ (MaxTransactionId) / OLDSERXID_ENTRIESPERPAGE)
315315
316316#define OldSerXidNextPage (page ) (((page) >= OLDSERXID_MAX_PAGE) ? 0 : (page) + 1)
317317
@@ -767,7 +767,7 @@ OldSerXidPagePrecedesLogically(int p, int q)
767767 diff = p - q ;
768768 if (diff >= ((OLDSERXID_MAX_PAGE + 1 ) / 2 ))
769769 diff -= OLDSERXID_MAX_PAGE + 1 ;
770- else if (diff < - ((OLDSERXID_MAX_PAGE + 1 ) / 2 ))
770+ else if (diff < - ((int ) ( OLDSERXID_MAX_PAGE + 1 ) / 2 ))
771771 diff += OLDSERXID_MAX_PAGE + 1 ;
772772 return diff < 0 ;
773773}
You can’t perform that action at this time.
0 commit comments