summaryrefslogtreecommitdiff
path: root/t/t9126/follow-deleted-readded.dump
diff options
context:
space:
mode:
authorLibravatar Jeff Hostetler <jeffhost@microsoft.com>2022-03-25 18:03:10 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-25 16:04:17 -0700
commit50c725d6b6f52b1c7fc4940c092d7f205cb99583 (patch)
tree444523f3c585f6c2bac248fe9799d56c4e09a293 /t/t9126/follow-deleted-readded.dump
parentt/perf/p7519: add fsmonitor--daemon test cases (diff)
downloadtgif-50c725d6b6f52b1c7fc4940c092d7f205cb99583.tar.xz
fsmonitor--daemon: periodically truncate list of modified files
Teach fsmonitor--daemon to periodically truncate the list of modified files to save some memory. Clients will ask for the set of changes relative to a token that they found in the FSMN index extension in the index. (This token is like a point in time, but different). Clients will then update the index to contain the response token (so that subsequent commands will be relative to this new token). Therefore, the daemon can gradually truncate the in-memory list of changed paths as they become obsolete (older than the previous token). Since we may have multiple clients making concurrent requests with a skew of tokens and clients may be racing to the talk to the daemon, we lazily truncate the list. We introduce a 5 minute delay and truncate batches 5 minutes after they are considered obsolete. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9126/follow-deleted-readded.dump')
0 files changed, 0 insertions, 0 deletions