summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-09-03 22:57:35 -0400
committerBruce Momjian <bruce@momjian.us>2020-09-03 22:57:35 -0400
commite36e936e0ee664e07588732d1a8d105c5ec8e57d (patch)
treeb553ea0e8f269a578533657524d0d516a91c708f /src/backend/access/gist/gistxlog.c
parent844c05abc3f1c1703bf17cf44ab66351ed9711d2 (diff)
downloadpostgresql-e36e936e0ee664e07588732d1a8d105c5ec8e57d.tar.gz
remove redundant initializations
Reported-by: Ranier Vilela Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com Author: Ranier Vilela Backpatch-through: master
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
-rw-r--r--src/backend/access/gist/gistxlog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c
index dcd28f678b..91b3e11182 100644
--- a/src/backend/access/gist/gistxlog.c
+++ b/src/backend/access/gist/gistxlog.c
@@ -405,7 +405,6 @@ 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.
*/
- nextXid = ReadNextFullTransactionId();
diff = U64FromFullTransactionId(nextXid) -
U64FromFullTransactionId(latestRemovedFullXid);
if (diff < MaxTransactionId / 2)