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
fix(snapshot): debounce LastAccessedAt touch + finalize-time stamp on Create
- lookupRecord: read first via store.With, only escalate to store.Update when
prior touch is older than accessTouchDebounce (1 minute). Hot paths (clone
DataDir, Export which calls DataDir twice in the gzip/tar path) used to take
the exclusive flock + rewrite the entire index JSON every call.
- Create: stamp LastAccessedAt at finalize via a fresh time.Now() instead of
the now captured before tar extraction so freshly-finished snapshots don't
look minutes old to --snapshot-age right after Create returns.
// lookupRecord resolves ref to a non-pending record; touch=true also bumps LastAccessedAt under the same write lock.
231
+
// lookupRecord resolves ref to a non-pending record; touch=true bumps LastAccessedAt only when the prior touch is older than accessTouchDebounce so hot paths (clone DataDir, Export) don't serialize on the index write lock.
0 commit comments