Avoid running multiple bup split processes concurrently

Since bup split is not concurrency safe.

Used a lock file so that 2 git-annex processes only run one bup split
between them (per bup repo).

(Concurrent writes from different git-annex repository clones to the same
bup repo could still have concurrency problems.)

Sponsored-by: Noam Kremen on Patreon
This commit is contained in:
Joey Hess 2022-08-08 18:54:06 -04:00
parent 04247fb4d0
commit abd417d4fe
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 31 additions and 2 deletions

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="joey"
subject="""comment 4"""
date="2022-08-08T20:13:24Z"
content="""
Got confirmation that bup is generally not concurrency safe.
I've made git-annex limit the number of bup-split it runs to 1.
It may be that this will also need to be done with bup-join, but I think
probably not since it probably does not write to the repo, and a bup-split
is unlikely to get in its way.
"""]]