-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep file locks fresh by updating them at regular intervals
This allows much longer-lived locks and much shorter expiry times, so if the process is force-closed, the lock becomes available in a matter of seconds instead of hours. This also means locks can be accurately acquired for hours without having to guess how long before a lock will be stale. Cost: one small goroutine per active lock. The goroutine may live a little longer than the actual lock since its termination is polling-based.
- Loading branch information
Showing
1 changed file
with
125 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters