diff options
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
-rw-r--r-- | src/backend/access/spgist/spgxlog.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/backend/access/spgist/spgxlog.c b/src/backend/access/spgist/spgxlog.c index 4c9f4020ff8..44adc2098f9 100644 --- a/src/backend/access/spgist/spgxlog.c +++ b/src/backend/access/spgist/spgxlog.c @@ -875,14 +875,11 @@ spgRedoVacuumRedirect(XLogReaderState *record) */ if (InHotStandby) { - if (TransactionIdIsValid(xldata->newestRedirectXid)) - { - RelFileLocator locator; + RelFileLocator locator; - XLogRecGetBlockTag(record, 0, &locator, NULL, NULL); - ResolveRecoveryConflictWithSnapshot(xldata->newestRedirectXid, - locator); - } + XLogRecGetBlockTag(record, 0, &locator, NULL, NULL); + ResolveRecoveryConflictWithSnapshot(xldata->snapshotConflictHorizon, + locator); } if (XLogReadBufferForRedo(record, 0, &buffer) == BLK_NEEDS_REDO) |