cache: fix race condition in cache cleanup

Fix multiple restic processes executing concurrently and racing to remove obsolete snapshots.

Co-authored-by: Michael Eischer <michael.eischer@fau.de>
This commit is contained in:
Damien ClarkandMichael Eischer authored and Michael Eischer committed 2024-09-14 18:07:46 +02:00
1 parent c1532179d4
commit 4795143d6d
2 files changed
+11

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
Bugfix: Fix possible error on concurrent cache cleanup
Fix for multiple restic processes executing concurrently and racing to
remove obsolete snapshots from the local backend cache. Restic now suppresses the `no
such file or directory` error.
https://github.com/restic/restic/pull/5047