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

Fix windows lock sharing violation #1558

Merged
merged 6 commits into from Nov 8, 2020
Merged

Conversation

crazybber
Copy link
Contributor

mtx.Lock() conflict with lock.Lock() on windows.

this is just Get(path string) :a reading operation , no need using double lock for reading race in single process.

Or we can remove mtx.Lock() to allow muti-process to read ,but still use file lock to handle race by syscal.

@crazybber
Copy link
Contributor Author

@asim @ben-toogood

@crazybber crazybber mentioned this pull request Nov 7, 2020
@asim asim merged commit 82bc794 into micro:master Nov 8, 2020
@crazybber crazybber deleted the fix-windows-lock branch November 9, 2020 04:27
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.

None yet

3 participants