Code

read-cache: tweak racy-git delay logic
authorJunio C Hamano <junkio@cox.net>
Tue, 8 Aug 2006 21:47:32 +0000 (14:47 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 9 Aug 2006 00:17:04 +0000 (17:17 -0700)
commit6015c28b1d6163f124332769989326ee470afbb6
tree876b7cd3df0448f735bdbfc967089f2b068de9c9
parentb7e58b17b50bbbf00299fc89c480efd7cc92c1bd
read-cache: tweak racy-git delay logic

Instead of looping over the entries and writing out, use a
separate loop after all entries have been written out to check
how many entries are racily clean.  Make sure that the newly
created index file gets the right timestamp when we check by
flushing the buffered data by ce_write().

Signed-off-by: Junio C Hamano <junkio@cox.net>
read-cache.c