mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user