Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Jun 21, 2021

In #3263, I fixed the issue where fsmonitor_ipc__send_query() was called with NULL as last_token, by simply not calling that function.

That works, but it is undesirable: it means that we do not even query the FSMonitor, and therefore do not get a token back, but instead store a dummy token and do a full scan. The next time we hit this code path, we do query the FSMonitor, but with a dummy token, and therefore cause another full scan.

By instead calling that function with a dummy token right away we do get back a valid token, and the second time we hit that code path we can reap the full benefit of the FSMonitor.

This is a companion of microsoft#385.

@dscho dscho requested a review from jeffhostetler June 21, 2021 19:34
@dscho dscho added this to the Next release milestone Jun 21, 2021
@dscho dscho merged commit 47d5684 into git-for-windows:main Jun 21, 2021
@dscho dscho deleted the redo-fsmonitor-null-last-update branch June 21, 2021 21:24
dscho added a commit that referenced this pull request Jun 25, 2021
git-for-windows-ci pushed a commit that referenced this pull request Jun 26, 2021
dscho added a commit that referenced this pull request Jun 29, 2021
git-for-windows-ci pushed a commit that referenced this pull request Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants