mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
ReadNewTransactionId() -> ReadNextTransactionId().
The new name conveys the effect better, is more consistent with similar functions ReadNextMultiXactId(), ReadNextFullTransactionId(), and matches the name of the variable that it reads. Reported-by: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-WzmVR4SakBXQUdhhPpMf1aYvZCnna5%3DHKa7DAgEmBAg%2B8g%40mail.gmail.com
This commit is contained in:
@@ -733,7 +733,7 @@ ActivateCommitTs(void)
|
||||
if (ShmemVariableCache->oldestCommitTsXid == InvalidTransactionId)
|
||||
{
|
||||
ShmemVariableCache->oldestCommitTsXid =
|
||||
ShmemVariableCache->newestCommitTsXid = ReadNewTransactionId();
|
||||
ShmemVariableCache->newestCommitTsXid = ReadNextTransactionId();
|
||||
}
|
||||
LWLockRelease(CommitTsLock);
|
||||
|
||||
|
@@ -548,7 +548,7 @@ GetStableLatestTransactionId(void)
|
||||
lxid = MyProc->lxid;
|
||||
stablexid = GetTopTransactionIdIfAny();
|
||||
if (!TransactionIdIsValid(stablexid))
|
||||
stablexid = ReadNewTransactionId();
|
||||
stablexid = ReadNextTransactionId();
|
||||
}
|
||||
|
||||
Assert(TransactionIdIsValid(stablexid));
|
||||
|
Reference in New Issue
Block a user