restic/internal
Michael Eischer 13fbc96ed3 lock: Synchronize Refresh() and Stale()
The lock test creates a lock and checks that it is not stale. However,
it is possible that the lock is refreshed concurrently, which updates
the lock timestamp. Checking the timestamp in `Stale()` without
synchronization results in a data race. Thus add a lock to prevent
concurrent accesses.
2022-11-11 21:52:53 +01:00
..
2022-10-21 14:32:46 +02:00
2022-07-17 13:42:23 +02:00
2022-10-14 14:06:47 +02:00
2022-05-11 21:36:10 +02:00
2022-10-14 14:33:49 +02:00
2021-01-30 20:19:47 +01:00
2022-11-02 21:31:13 +01:00