aboutsummaryrefslogtreecommitdiff
path: root/Utility/LockPool
Commit message (Collapse)AuthorAge
* fix build with old ghcGravatar Joey Hess2016-03-05
|
* fix windows build moreGravatar Joey Hess2016-03-05
|
* fix windows buildGravatar Joey Hess2016-03-03
|
* fix windows buildGravatar Joey Hess2016-03-03
|
* Fix shared lock file FD leak.Gravatar Joey Hess2016-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes behavior in this situation: l1 <- lockShared Nothing "lck" l2 <- lockShared Nothing "lck" dropLock l1 dropLock l2 Before, the lock was dropped upon the second dropLock call, but the fd remained open, and would never be closed while the program was running. Fixed by a rather round-about method, but it should work well enough. It would have been simpler to open open the shared lock once, and not open it again in the second call to lockShared. But, that's difficult to do atomically. This also affects Windows and PID locks, not just posix locks. In the case of pid locks, multiple calls to waitLock within the same process are allowed because the side lock is locked using a posix lock, and so multiple exclusive locks can be taken in the same process. So, this change fixes a similar problem with pid locks. l1 <- waitLock (Seconds 1) "lck" l2 <- waitLock (Seconds 1) "lck" dropLock l1 dropLock l2 Here the l2 side lock fd remained open but not locked, although the pid lock file was removed. After this change, the second dropLock will close both fds to the side lock, and delete the pidlock.
* commentGravatar Joey Hess2016-03-01
|
* Fix bug preventing moving files to/from a repository with annex.pidlock set.Gravatar Joey Hess2016-03-01
|
* clean build warning on windowsGravatar Joey Hess2015-12-28
|
* add timeout for pid lock waitingGravatar Joey Hess2015-11-12
|
* refactorGravatar Joey Hess2015-11-12
|
* module for PidLocks in LockPoolGravatar Joey Hess2015-11-12
|
* make LockPool's LockHandle be able to support multiple different types of ↵Gravatar Joey Hess2015-11-12
| | | | file locks
* module for pid lock files with atomic stale lock file takeover when possibleGravatar Joey Hess2015-11-12
|
* add lockContentSharedGravatar Joey Hess2015-10-08
| | | | | | | | Also, rename lockContent to lockContentExclusive inAnnexSafe should perhaps be eliminated, and instead use `lockContentShared inAnnex`. However, I'm waiting on that, as there are only 2 call sites for inAnnexSafe and it's fiddly.
* add tryLockSharedGravatar Joey Hess2015-10-08
|
* remove unused importsGravatar Joey Hess2015-08-03
|
* remove unused importsGravatar Joey Hess2015-08-03
|
* AMP hackGravatar Joey Hess2015-05-31
|
* need more polymorphismGravatar Joey Hess2015-05-22
|
* fix windows buildGravatar Joey Hess2015-05-22
|
* fix crash in stale transfer lockfile cleanup codeGravatar Joey Hess2015-05-19
| | | | | Need to differentiate between the lockfile not being locked, and it not existing.
* unused importsGravatar Joey Hess2015-05-19
|
* use lock pools throughout git-annexGravatar Joey Hess2015-05-19
| | | | | | | | | | | | | The one exception is in Utility.Daemon. As long as a process only daemonizes once, which seems reasonable, and as long as it avoids calling checkDaemon once it's already running as a daemon, the fcntl locking gotchas won't be a problem there. Annex.LockFile has it's own separate lock pool layer, which has been renamed to LockCache. This is a persistent cache of locks that persist until closed. This is not quite done; lockContent stil needs to be converted.
* lock pools to work around non-concurrency/composition safety of POSIX fcntlGravatar Joey Hess2015-05-18