mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +03:00
Rename VariableCacheData.nextFullXid to nextXid.
Including Full in variable names duplicates the type information and leads to overly long names. As FullTransactionId cannot accidentally be casted to TransactionId that does not seem necessary. Author: Andres Freund Discussion: https://postgr.es/m/20200724011143.jccsyvsvymuiqfxu@alap3.anarazel.de
This commit is contained in:
@@ -614,7 +614,7 @@ ZeroCommitTsPage(int pageno, bool writeXlog)
|
||||
|
||||
/*
|
||||
* This must be called ONCE during postmaster or standalone-backend startup,
|
||||
* after StartupXLOG has initialized ShmemVariableCache->nextFullXid.
|
||||
* after StartupXLOG has initialized ShmemVariableCache->nextXid.
|
||||
*/
|
||||
void
|
||||
StartupCommitTs(void)
|
||||
@@ -704,7 +704,7 @@ ActivateCommitTs(void)
|
||||
}
|
||||
LWLockRelease(CommitTsLock);
|
||||
|
||||
xid = XidFromFullTransactionId(ShmemVariableCache->nextFullXid);
|
||||
xid = XidFromFullTransactionId(ShmemVariableCache->nextXid);
|
||||
pageno = TransactionIdToCTsPage(xid);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user