summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorAndres Freund2020-08-11 18:25:23 +0000
committerAndres Freund2020-08-11 19:07:14 +0000
commitfea10a64340e529805609126740a540c8f9daab4 (patch)
treed1e87d36b7e115441c55f195cfe22de010201cbd /src/backend/access/gist/gistxlog.c
parent1f75b454134cce6a67a9bcdb01b5c018221dd359 (diff)
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/[email protected]
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 3f0effd5e42..7b5d1e98b70 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)
{