summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorLudovic Courtès <[email protected]>2024-07-16 11:03:16 +0200
committerLudovic Courtès <[email protected]>2024-08-21 00:52:39 +0200
commitd921c742b774a9f0a016f3db6442d5c58a330c92 (patch)
tree398620edbdfe9b97e25c157790bfca6166b58fde /nix
parent96cd163c14e68c66c6a4cf0b18261fc454f8c1ba (diff)
cache: Avoid cache cleanup storms from concurrent processes.
Reported by Christopher Baines <[email protected]>. * guix/cache.scm (maybe-remove-expired-cache-entries): Define ‘expiry-port’; create it with ‘lock-file’. Change ‘last-expiry-date’ accordingly. Write timestamp straight to ‘expiry-port’. * tests/cache.scm ("maybe-remove-expired-cache-entries, cleanup needed but lock taken"): New test. Change-Id: I22441d9d2c4a339d3d3878de131864db5a0ae826
Diffstat (limited to 'nix')
0 files changed, 0 insertions, 0 deletions