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: rewrite prefix guard into async #2908

Merged
merged 12 commits into from
Jan 15, 2025

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Jan 14, 2025

Overview

Fixes deadlock situation from : #2898

Quoting:

The problem appears when you have two operations ( for example, git operations ) , both dependent on the same file lock, they will deadlock because .write() operation is blocking operation and other part that should make the progress and it's running in tokio:task:spawn_blocking , it nevers switch the context, thus not unblocking the guard

@nichmor nichmor enabled auto-merge (squash) January 15, 2025 08:12
@nichmor nichmor merged commit 5f2e932 into prefix-dev:main Jan 15, 2025
28 checks passed
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.

2 participants