Re: [PATCH v1 14/19] read-cache: touch shared index files when used

2016-11-01 Thread Junio C Hamano
Duy Nguyen writes: > On Sun, Oct 23, 2016 at 4:26 PM, Christian Couder > wrote: >> @@ -2268,6 +2268,12 @@ int write_locked_index(struct index_state *istate, >> struct lock_file *lock, > > Doing this in read_index_from() would keep the shared file even more > "fresher" since read happens a lot m

Re: [PATCH v1 14/19] read-cache: touch shared index files when used

2016-10-25 Thread Duy Nguyen
On Sun, Oct 23, 2016 at 4:26 PM, Christian Couder wrote: > @@ -2268,6 +2268,12 @@ int write_locked_index(struct index_state *istate, > struct lock_file *lock, Doing this in read_index_from() would keep the shared file even more "fresher" since read happens a lot more often than write. But I thin

[PATCH v1 14/19] read-cache: touch shared index files when used

2016-10-23 Thread Christian Couder
When a split-index file is created, let's update the mtime of the shared index file that the split-index file is referencing. In a following commit we will make shared index file expire depending on their mtime, so updating the mtime makes sure that the shared index file will not be deleted soon.