Re: [PATCH v7 2/2] Verify index file before we opportunistically update it
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 12, 2014, 00:10 UTC
- Message-ID
- <CACsJy8ASAvopmyhawmUkuFk4DjBd2opL1kxu_jtopTDr80BWPg@mail.gmail.com>
- In-Reply-To
- <xmqqmwfrr3zw.fsf@gitster.dls.corp.google.com>
On Sat, Apr 12, 2014 at 3:43 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Having said that, nobody sane would be running two simultaneous > operations that are clearly write-oriented competing with each other > against the same index file.
When it comes to racing, sanity does not matter much. People could just do it without thinking what exactly is happening behind the scene.
> So in that sense that can be done as a less urgent follow-up for this topic.
Yeah if racing at refresh time is a real problem, sure we should solve it first.
-- Duy