5a98f2d509
If the content directory does not exist, then it does not make sense to lock the content file, as it also does not exist, and so it's ok for the lock operation to fail. This avoids potential races where the content file exists but is then deleted/renamed, while another process sees that it exists and goes to lock it, resulting in a dangling lock file in an otherwise empty object directory. Also renamed modifyContent to modifyContentDir since it is not only necessarily used for modifying content files, but also other files in the content directory. Sponsored-by: Dartmouth College's Datalad project |
||
---|---|---|
.. | ||
V5 | ||
V0.hs | ||
V1.hs | ||
V2.hs | ||
V3.hs | ||
V4.hs | ||
V5.hs | ||
V6.hs | ||
V7.hs | ||
V8.hs | ||
V9.hs |