File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4801,6 +4801,7 @@ BootStrapXLOG(void)
4801
4801
checkPoint .PrevTimeLineID = ThisTimeLineID ;
4802
4802
checkPoint .fullPageWrites = fullPageWrites ;
4803
4803
checkPoint .nextXid = FirstNormalTransactionId ;
4804
+ TransactionIdAdvance (checkPoint .nextXid );
4804
4805
checkPoint .nextOid = FirstBootstrapObjectId ;
4805
4806
checkPoint .nextMulti = FirstMultiXactId ;
4806
4807
checkPoint .nextMultiOffset = 0 ;
Original file line number Diff line number Diff line change 56
56
#define TransactionIdAdvance (dest ) \
57
57
do { \
58
58
(dest)++; \
59
- if ((dest) < FirstNormalTransactionId) \
60
- (dest) = FirstNormalTransactionId; \
59
+ Assert((dest) > FirstNormalTransactionId); \
61
60
} while(0)
62
61
63
62
/* back up a transaction ID variable, handling wraparound correctly */
64
63
#define TransactionIdRetreat (dest ) \
65
64
do { \
65
+ Assert((dest) > FirstNormalTransactionId); \
66
66
(dest)--; \
67
- } while ((dest) < FirstNormalTransactionId )
67
+ } while(0 )
68
68
69
69
/* compare two XIDs already known to be normal; this is a macro for speed */
70
70
#define NormalTransactionIdPrecedes (id1 , id2 ) \
You can’t perform that action at this time.
0 commit comments