Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo fix for FSMonitor #3287

Merged
merged 1 commit into from
Jun 21, 2021

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.

…emon via IPC

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
@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