Re: [PATCH 04/20] lock_ref_sha1_basic(): use raceproof_create_file()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 17, 2016, 20:44 UTC
- Message-ID
- <xmqqr3gbhxsj.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <77c2b6f72b55943a0097d81196f520a7fe890310.1455626201.git.mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 5 quoted lines
> Instead of coding the retry loop inline, use raceproof_create_file() to > make lock acquisition safe against directory creation/deletion races. > > Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> > ---
Makes sense.