Re: [PATCH v2 10/17] lock_ref_sha1_basic(): on SCLD_VANISHED, retry

2014-01-07 Thread Michael Haggerty
On 01/06/2014 06:54 PM, Junio C Hamano wrote: > Michael Haggerty writes: > >> If safe_create_leading_directories() fails because a file along the >> path unexpectedly vanished, try again (up to 3 times). >> >> This can occur if another process is deleting directories at the same >> time as we are

Re: [PATCH v2 10/17] lock_ref_sha1_basic(): on SCLD_VANISHED, retry

2014-01-06 Thread Junio C Hamano
Michael Haggerty writes: > If safe_create_leading_directories() fails because a file along the > path unexpectedly vanished, try again (up to 3 times). > > This can occur if another process is deleting directories at the same > time as we are trying to make them. For example, "git pack-refs > --

[PATCH v2 10/17] lock_ref_sha1_basic(): on SCLD_VANISHED, retry

2014-01-06 Thread Michael Haggerty
If safe_create_leading_directories() fails because a file along the path unexpectedly vanished, try again (up to 3 times). This can occur if another process is deleting directories at the same time as we are trying to make them. For example, "git pack-refs --all" tries to delete the loose refs an