summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2020-08-11 11:25:23 -0700
committerAndres Freund <andres@anarazel.de>2020-08-11 12:07:14 -0700
commitfea10a64340e529805609126740a540c8f9daab4 (patch)
treed1e87d36b7e115441c55f195cfe22de010201cbd /src/backend/access/gist/gistxlog.c
parent1f75b454134cce6a67a9bcdb01b5c018221dd359 (diff)
downloadpostgresql-fea10a64340e529805609126740a540c8f9daab4.tar.gz
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/gist/gistxlog.c')
-rw-r--r--src/backend/access/gist/gistxlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c
index 3f0effd5e4..7b5d1e98b7 100644
--- a/src/backend/access/gist/gistxlog.c
+++ b/src/backend/access/gist/gistxlog.c
@@ -396,7 +396,7 @@ gistRedoPageReuse(XLogReaderState *record)
if (InHotStandby)
{
FullTransactionId latestRemovedFullXid = xlrec->latestRemovedFullXid;
- FullTransactionId nextFullXid = ReadNextFullTransactionId();
+ FullTransactionId nextXid = ReadNextFullTransactionId();
uint64 diff;
/*
@@ -405,8 +405,8 @@ gistRedoPageReuse(XLogReaderState *record)
* logged value is very old, so that XID wrap-around already happened
* on it, there can't be any snapshots that still see it.
*/
- nextFullXid = ReadNextFullTransactionId();
- diff = U64FromFullTransactionId(nextFullXid) -
+ nextXid = ReadNextFullTransactionId();
+ diff = U64FromFullTransactionId(nextXid) -
U64FromFullTransactionId(latestRemovedFullXid);
if (diff < MaxTransactionId / 2)
{