@@ -75,7 +75,7 @@ GetNewTransactionId(bool isSubXact)
7575
7676 LWLockAcquire (XidGenLock , LW_EXCLUSIVE );
7777
78- full_xid = ShmemVariableCache -> nextFullXid ;
78+ full_xid = ShmemVariableCache -> nextXid ;
7979 xid = XidFromFullTransactionId (full_xid );
8080
8181 /*----------
@@ -159,7 +159,7 @@ GetNewTransactionId(bool isSubXact)
159159
160160 /* Re-acquire lock and start over */
161161 LWLockAcquire (XidGenLock , LW_EXCLUSIVE );
162- full_xid = ShmemVariableCache -> nextFullXid ;
162+ full_xid = ShmemVariableCache -> nextXid ;
163163 xid = XidFromFullTransactionId (full_xid );
164164 }
165165
@@ -177,12 +177,12 @@ GetNewTransactionId(bool isSubXact)
177177 ExtendSUBTRANS (xid );
178178
179179 /*
180- * Now advance the nextFullXid counter. This must not happen until after
180+ * Now advance the nextXid counter. This must not happen until after
181181 * we have successfully completed ExtendCLOG() --- if that routine fails,
182182 * we want the next incoming transaction to try it again. We cannot
183183 * assign more XIDs until there is CLOG space for them.
184184 */
185- FullTransactionIdAdvance (& ShmemVariableCache -> nextFullXid );
185+ FullTransactionIdAdvance (& ShmemVariableCache -> nextXid );
186186
187187 /*
188188 * We must store the new XID into the shared ProcArray before releasing
@@ -240,22 +240,22 @@ GetNewTransactionId(bool isSubXact)
240240}
241241
242242/*
243- * Read nextFullXid but don't allocate it.
243+ * Read nextXid but don't allocate it.
244244 */
245245FullTransactionId
246246ReadNextFullTransactionId (void )
247247{
248248 FullTransactionId fullXid ;
249249
250250 LWLockAcquire (XidGenLock , LW_SHARED );
251- fullXid = ShmemVariableCache -> nextFullXid ;
251+ fullXid = ShmemVariableCache -> nextXid ;
252252 LWLockRelease (XidGenLock );
253253
254254 return fullXid ;
255255}
256256
257257/*
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.
259259 * This must only be called during recovery or from two-phase start-up code.
260260 */
261261void
@@ -266,14 +266,14 @@ AdvanceNextFullTransactionIdPastXid(TransactionId xid)
266266 uint32 epoch ;
267267
268268 /*
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
270270 * called from the startup process or single-process mode, meaning that no
271271 * other process can modify it.
272272 */
273273 Assert (AmStartupProcess () || !IsUnderPostmaster );
274274
275275 /* 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 );
277277 if (!TransactionIdFollowsOrEquals (xid , next_xid ))
278278 return ;
279279
@@ -286,7 +286,7 @@ AdvanceNextFullTransactionIdPastXid(TransactionId xid)
286286 * point in the WAL stream.
287287 */
288288 TransactionIdAdvance (xid );
289- epoch = EpochFromFullTransactionId (ShmemVariableCache -> nextFullXid );
289+ epoch = EpochFromFullTransactionId (ShmemVariableCache -> nextXid );
290290 if (unlikely (xid < next_xid ))
291291 ++ epoch ;
292292 newNextFullXid = FullTransactionIdFromEpochAndXid (epoch , xid );
@@ -296,7 +296,7 @@ AdvanceNextFullTransactionIdPastXid(TransactionId xid)
296296 * concurrent readers.
297297 */
298298 LWLockAcquire (XidGenLock , LW_EXCLUSIVE );
299- ShmemVariableCache -> nextFullXid = newNextFullXid ;
299+ ShmemVariableCache -> nextXid = newNextFullXid ;
300300 LWLockRelease (XidGenLock );
301301}
302302
@@ -404,7 +404,7 @@ SetTransactionIdLimit(TransactionId oldest_datfrozenxid, Oid oldest_datoid)
404404 ShmemVariableCache -> xidStopLimit = xidStopLimit ;
405405 ShmemVariableCache -> xidWrapLimit = xidWrapLimit ;
406406 ShmemVariableCache -> oldestXidDB = oldest_datoid ;
407- curXid = XidFromFullTransactionId (ShmemVariableCache -> nextFullXid );
407+ curXid = XidFromFullTransactionId (ShmemVariableCache -> nextXid );
408408 LWLockRelease (XidGenLock );
409409
410410 /* Log the info */
@@ -480,7 +480,7 @@ ForceTransactionIdLimitUpdate(void)
480480
481481 /* Locking is probably not really necessary, but let's be careful */
482482 LWLockAcquire (XidGenLock , LW_SHARED );
483- nextXid = XidFromFullTransactionId (ShmemVariableCache -> nextFullXid );
483+ nextXid = XidFromFullTransactionId (ShmemVariableCache -> nextXid );
484484 xidVacLimit = ShmemVariableCache -> xidVacLimit ;
485485 oldestXid = ShmemVariableCache -> oldestXid ;
486486 oldestXidDB = ShmemVariableCache -> oldestXidDB ;
0 commit comments