File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1659,7 +1659,7 @@ TransactionIdLimitedForOldSnapshots(TransactionId recentXmin,
1659
1659
* This is not an assertion because we avoid the spinlock for
1660
1660
* performance, leaving open the possibility that xlimit could advance
1661
1661
* 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
1663
1663
* protects against data loss bugs.
1664
1664
*/
1665
1665
if (TransactionIdIsNormal (latest_xmin )
@@ -1681,9 +1681,8 @@ MaintainOldSnapshotTimeMapping(int64 whenTaken, TransactionId xmin)
1681
1681
{
1682
1682
int64 ts ;
1683
1683
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 );
1687
1686
1688
1687
/* Keep track of the latest xmin seen by any process. */
1689
1688
SpinLockAcquire (& oldSnapshotControl -> mutex_latest_xmin );
You can’t perform that action at this time.
0 commit comments