Re: broken racy detection and performance issues with nanosecond file times
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 28, 2015, 17:38 UTC
- Message-ID
- <xmqqbncme95a.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <5605D88A.20104@gmail.com>
Karsten Blees <karsten.blees@gmail.com> writes:
Show 10 quoted lines
> Problem 1: Failure to detect racy files (without USE_NSEC) > ========================================================== > > Git may not detect racy changes when 'update-index' runs in parallel > to work tree updates. > > Consider this (where timestamps are t<seconds>.<nanoseconds>): > > t0.0$ echo "foo" > file1 > t0.1$ git update-index file1 & # runs in background
I just wonder after looking at the ampersand here ...
> Please let me know what you think of this...maybe I've completely > screwed up and can no longer see the forest for all the trees.
... if your task would become much simpler if you declare "once you give Git the control, do not muck with the repository until you get the control back".