diff options
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r-- | src/backend/access/gist/gist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 30069f139c..3e275e6700 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -1665,10 +1665,10 @@ gistprunepage(Relation rel, Page page, Buffer buffer, Relation heapRel) if (ndeletable > 0) { - TransactionId latestRemovedXid = InvalidTransactionId; + TransactionId snapshotConflictHorizon = InvalidTransactionId; if (XLogStandbyInfoActive() && RelationNeedsWAL(rel)) - latestRemovedXid = + snapshotConflictHorizon = index_compute_xid_horizon_for_tuples(rel, heapRel, buffer, deletable, ndeletable); @@ -1694,7 +1694,7 @@ gistprunepage(Relation rel, Page page, Buffer buffer, Relation heapRel) recptr = gistXLogDelete(buffer, deletable, ndeletable, - latestRemovedXid); + snapshotConflictHorizon); PageSetLSN(page, recptr); } |