@@ -75,7 +75,7 @@ GetNewTransactionId(bool isSubXact)
75
75
76
76
LWLockAcquire (XidGenLock , LW_EXCLUSIVE );
77
77
78
- full_xid = ShmemVariableCache -> nextFullXid ;
78
+ full_xid = ShmemVariableCache -> nextXid ;
79
79
xid = XidFromFullTransactionId (full_xid );
80
80
81
81
/*----------
@@ -159,7 +159,7 @@ GetNewTransactionId(bool isSubXact)
159
159
160
160
/* Re-acquire lock and start over */
161
161
LWLockAcquire (XidGenLock , LW_EXCLUSIVE );
162
- full_xid = ShmemVariableCache -> nextFullXid ;
162
+ full_xid = ShmemVariableCache -> nextXid ;
163
163
xid = XidFromFullTransactionId (full_xid );
164
164
}
165
165
@@ -177,12 +177,12 @@ GetNewTransactionId(bool isSubXact)
177
177
ExtendSUBTRANS (xid );
178
178
179
179
/*
180
- * Now advance the nextFullXid counter. This must not happen until after
180
+ * Now advance the nextXid counter. This must not happen until after
181
181
* we have successfully completed ExtendCLOG() --- if that routine fails,
182
182
* we want the next incoming transaction to try it again. We cannot
183
183
* assign more XIDs until there is CLOG space for them.
184
184
*/
185
- FullTransactionIdAdvance (& ShmemVariableCache -> nextFullXid );
185
+ FullTransactionIdAdvance (& ShmemVariableCache -> nextXid );
186
186
187
187
/*
188
188
* We must store the new XID into the shared ProcArray before releasing
@@ -240,22 +240,22 @@ GetNewTransactionId(bool isSubXact)
240
240
}
241
241
242
242
/*
243
- * Read nextFullXid but don't allocate it.
243
+ * Read nextXid but don't allocate it.
244
244
*/
245
245
FullTransactionId
246
246
ReadNextFullTransactionId (void )
247
247
{
248
248
FullTransactionId fullXid ;
249
249
250
250
LWLockAcquire (XidGenLock , LW_SHARED );
251
- fullXid = ShmemVariableCache -> nextFullXid ;
251
+ fullXid = ShmemVariableCache -> nextXid ;
252
252
LWLockRelease (XidGenLock );
253
253
254
254
return fullXid ;
255
255
}
256
256
257
257
/*
258
- * Advance nextFullXid to the value after a given xid. The epoch is inferred.
258
+ * Advance nextXid to the value after a given xid. The epoch is inferred.
259
259
* This must only be called during recovery or from two-phase start-up code.
260
260
*/
261
261
void
@@ -266,14 +266,14 @@ AdvanceNextFullTransactionIdPastXid(TransactionId xid)
266
266
uint32 epoch ;
267
267
268
268
/*
269
- * It is safe to read nextFullXid without a lock, because this is only
269
+ * It is safe to read nextXid without a lock, because this is only
270
270
* called from the startup process or single-process mode, meaning that no
271
271
* other process can modify it.
272
272
*/
273
273
Assert (AmStartupProcess () || !IsUnderPostmaster );
274
274
275
275
/* Fast return if this isn't an xid high enough to move the needle. */
276
- next_xid = XidFromFullTransactionId (ShmemVariableCache -> nextFullXid );
276
+ next_xid = XidFromFullTransactionId (ShmemVariableCache -> nextXid );
277
277
if (!TransactionIdFollowsOrEquals (xid , next_xid ))
278
278
return ;
279
279
@@ -286,7 +286,7 @@ AdvanceNextFullTransactionIdPastXid(TransactionId xid)
286
286
* point in the WAL stream.
287
287
*/
288
288
TransactionIdAdvance (xid );
289
- epoch = EpochFromFullTransactionId (ShmemVariableCache -> nextFullXid );
289
+ epoch = EpochFromFullTransactionId (ShmemVariableCache -> nextXid );
290
290
if (unlikely (xid < next_xid ))
291
291
++ epoch ;
292
292
newNextFullXid = FullTransactionIdFromEpochAndXid (epoch , xid );
@@ -296,7 +296,7 @@ AdvanceNextFullTransactionIdPastXid(TransactionId xid)
296
296
* concurrent readers.
297
297
*/
298
298
LWLockAcquire (XidGenLock , LW_EXCLUSIVE );
299
- ShmemVariableCache -> nextFullXid = newNextFullXid ;
299
+ ShmemVariableCache -> nextXid = newNextFullXid ;
300
300
LWLockRelease (XidGenLock );
301
301
}
302
302
@@ -404,7 +404,7 @@ SetTransactionIdLimit(TransactionId oldest_datfrozenxid, Oid oldest_datoid)
404
404
ShmemVariableCache -> xidStopLimit = xidStopLimit ;
405
405
ShmemVariableCache -> xidWrapLimit = xidWrapLimit ;
406
406
ShmemVariableCache -> oldestXidDB = oldest_datoid ;
407
- curXid = XidFromFullTransactionId (ShmemVariableCache -> nextFullXid );
407
+ curXid = XidFromFullTransactionId (ShmemVariableCache -> nextXid );
408
408
LWLockRelease (XidGenLock );
409
409
410
410
/* Log the info */
@@ -480,7 +480,7 @@ ForceTransactionIdLimitUpdate(void)
480
480
481
481
/* Locking is probably not really necessary, but let's be careful */
482
482
LWLockAcquire (XidGenLock , LW_SHARED );
483
- nextXid = XidFromFullTransactionId (ShmemVariableCache -> nextFullXid );
483
+ nextXid = XidFromFullTransactionId (ShmemVariableCache -> nextXid );
484
484
xidVacLimit = ShmemVariableCache -> xidVacLimit ;
485
485
oldestXid = ShmemVariableCache -> oldestXid ;
486
486
oldestXidDB = ShmemVariableCache -> oldestXidDB ;
0 commit comments