Ludovic Courtès d921c742b7
cache: Avoid cache cleanup storms from concurrent processes.
Reported by Christopher Baines <guix@cbaines.net>.

* 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
2024-08-21 00:52:39 +02:00
..
2024-03-07 13:04:27 +02:00
2024-04-15 22:36:42 +02:00
2024-04-15 22:36:42 +02:00
2024-01-08 21:04:44 +03:00
2024-04-15 22:36:42 +02:00
2024-04-15 22:36:42 +02:00
2024-04-15 22:36:42 +02:00
2024-07-02 10:19:52 +02:00