diff options
author | Andres Freund <andres@anarazel.de> | 2020-08-11 11:25:23 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2020-08-11 12:07:14 -0700 |
commit | fea10a64340e529805609126740a540c8f9daab4 (patch) | |
tree | d1e87d36b7e115441c55f195cfe22de010201cbd /src/backend/access/transam/clog.c | |
parent | 1f75b454134cce6a67a9bcdb01b5c018221dd359 (diff) | |
download | postgresql-fea10a64340e529805609126740a540c8f9daab4.tar.gz postgresql-fea10a64340e529805609126740a540c8f9daab4.zip |
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
Diffstat (limited to 'src/backend/access/transam/clog.c')
-rw-r--r-- | src/backend/access/transam/clog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/transam/clog.c b/src/backend/access/transam/clog.c index f3da40ae017..dd2f4d5bc7e 100644 --- a/src/backend/access/transam/clog.c +++ b/src/backend/access/transam/clog.c @@ -742,12 +742,12 @@ ZeroCLOGPage(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 StartupCLOG(void) { - TransactionId xid = XidFromFullTransactionId(ShmemVariableCache->nextFullXid); + TransactionId xid = XidFromFullTransactionId(ShmemVariableCache->nextXid); int pageno = TransactionIdToPage(xid); LWLockAcquire(XactSLRULock, LW_EXCLUSIVE); @@ -766,7 +766,7 @@ StartupCLOG(void) void TrimCLOG(void) { - TransactionId xid = XidFromFullTransactionId(ShmemVariableCache->nextFullXid); + TransactionId xid = XidFromFullTransactionId(ShmemVariableCache->nextXid); int pageno = TransactionIdToPage(xid); LWLockAcquire(XactSLRULock, LW_EXCLUSIVE); @@ -785,7 +785,7 @@ TrimCLOG(void) * but makes no WAL entry). Let's just be safe. (We need not worry about * pages beyond the current one, since those will be zeroed when first * used. For the same reason, there is no need to do anything when - * nextFullXid is exactly at a page boundary; and it's likely that the + * nextXid is exactly at a page boundary; and it's likely that the * "current" page doesn't exist yet in that case.) */ if (TransactionIdToPgIndex(xid) != 0) |