diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-12-05 12:54:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-05 12:54:14 -0800 |
commit | 86cd8dc8e7b04e143bff4e61a7a036a989775507 (patch) | |
tree | 43b862f55627ffe883cae37a6f5e65904398cdf9 /contrib/credential | |
parent | Merge branch 'jk/robustify-parse-commit' (diff) | |
parent | sha1_file.c:create_tmpfile(): Fix race when creating loose object dirs (diff) | |
download | tgif-86cd8dc8e7b04e143bff4e61a7a036a989775507.tar.xz |
Merge branch 'jh/loose-object-dirs-creation-race'
When two processes created one loose object file each, which fell
into the same fan-out bucket that previously did not have any
objects, they both tried to do an equivalent of
mkdir .git/objects/$fanout &&
chmod $shared_perm .git/objects/$fanout
before writing into their file .git/objects/$fanout/$remainder,
one of which could have failed unnecessarily when the second
invocation of mkdir found that the directory already has been
created by the first one.
* jh/loose-object-dirs-creation-race:
sha1_file.c:create_tmpfile(): Fix race when creating loose object dirs
Diffstat (limited to 'contrib/credential')
0 files changed, 0 insertions, 0 deletions