mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Rename ShmemVariableCache to TransamVariables
The old name was misleading: It's not a cache, the values kept in the struct are the authoritative source. Reviewed-by: Tristan Partin, Richard Guo Discussion: https://www.postgresql.org/message-id/6537d63d-4bb5-46f8-9b5d-73a8ba4720ab@iki.fi
This commit is contained in:
@ -758,12 +758,12 @@ ZeroCLOGPage(int64 pageno, bool writeXlog)
|
||||
|
||||
/*
|
||||
* This must be called ONCE during postmaster or standalone-backend startup,
|
||||
* after StartupXLOG has initialized ShmemVariableCache->nextXid.
|
||||
* after StartupXLOG has initialized TransamVariables->nextXid.
|
||||
*/
|
||||
void
|
||||
StartupCLOG(void)
|
||||
{
|
||||
TransactionId xid = XidFromFullTransactionId(ShmemVariableCache->nextXid);
|
||||
TransactionId xid = XidFromFullTransactionId(TransamVariables->nextXid);
|
||||
int64 pageno = TransactionIdToPage(xid);
|
||||
|
||||
LWLockAcquire(XactSLRULock, LW_EXCLUSIVE);
|
||||
@ -782,7 +782,7 @@ StartupCLOG(void)
|
||||
void
|
||||
TrimCLOG(void)
|
||||
{
|
||||
TransactionId xid = XidFromFullTransactionId(ShmemVariableCache->nextXid);
|
||||
TransactionId xid = XidFromFullTransactionId(TransamVariables->nextXid);
|
||||
int64 pageno = TransactionIdToPage(xid);
|
||||
|
||||
LWLockAcquire(XactSLRULock, LW_EXCLUSIVE);
|
||||
|
Reference in New Issue
Block a user