File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1659,7 +1659,7 @@ TransactionIdLimitedForOldSnapshots(TransactionId recentXmin,
16591659 * This is not an assertion because we avoid the spinlock for
16601660 * performance, leaving open the possibility that xlimit could advance
16611661 * and be more current; but it seems prudent to apply this limit. It
1662- * might make pruning a tiny bit less agressive than it could be, but
1662+ * might make pruning a tiny bit less aggressive than it could be, but
16631663 * protects against data loss bugs.
16641664 */
16651665 if (TransactionIdIsNormal (latest_xmin )
@@ -1681,9 +1681,8 @@ MaintainOldSnapshotTimeMapping(int64 whenTaken, TransactionId xmin)
16811681{
16821682 int64 ts ;
16831683
1684- /* Fast exit when old_snapshot_threshold is not used. */
1685- if (old_snapshot_threshold < 0 )
1686- return ;
1684+ /* Never call this function when old snapshot checking is disabled. */
1685+ Assert (old_snapshot_threshold >= 0 );
16871686
16881687 /* Keep track of the latest xmin seen by any process. */
16891688 SpinLockAcquire (& oldSnapshotControl -> mutex_latest_xmin );
You can’t perform that action at this time.
0 commit comments