Merge branch 'sg/split-index-racefix'

The codepath to support the experimental split-index mode had
remaining "racily clean" issues fixed.

* sg/split-index-racefix:
  split-index: BUG() when cache entry refers to non-existing shared entry
  split-index: smudge and add racily clean cache entries to split index
  split-index: don't compare cached data of entries already marked for split index
  split-index: count the number of deleted entries
  t1700-split-index: date back files to avoid racy situations
  split-index: add tests to demonstrate the racy split index problem
  t1700-split-index: document why FSMONITOR is disabled in this test script
This commit is contained in:
Junio C Hamano
2018-10-26 14:22:10 +09:00
5 changed files with 360 additions and 42 deletions

View File

@ -345,7 +345,7 @@ static int is_racy_stat(const struct index_state *istate,
);
}
static int is_racy_timestamp(const struct index_state *istate,
int is_racy_timestamp(const struct index_state *istate,
const struct cache_entry *ce)
{
return (!S_ISGITLINK(ce->ce_mode) &&