You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Add a few entries to the tail of time mapping, to see old values.
Without a few entries beyond old_snapshot_threshold, the lookupwould often fail, resulting in the more aggressive pruning orvacuum being skipped often enough to matter. This was very clearlyshown by a python test script posted by Ants Aasma, and was likelya factor in an earlier but somewhat less clear-cut test case postedby Jeff Janes.This patch makes no change to the logic, per se -- it just makesthe array of mapping entries big enough to make lookup misses basedon timing much less likely. An occasional miss is still possibleif a thread stalls for more than 10 minutes, but that does notcreate any problem with correctness of behavior. Besides, ifthings are so busy that a thread is stalling for more than 10minutes, it is probably OK to skip the more aggressive cleanup atthat particular point in time.