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

Notify all waiting connections on transaction end #654

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

MarinPostma
Copy link
Contributor

This PR fixes a bug with lock-stealing when only a single connection would be notified when the lock was returned. The could cause some connections to never be notified, and only try to re-acquire the lock when the timeout had passed. Instead, we now notify all waiters, and let them wait again for a new slot.

@MarinPostma MarinPostma added this pull request to the merge queue Nov 20, 2023
Merged via the queue into main with commit d2a13bd Nov 20, 2023
12 checks passed
@MarinPostma MarinPostma deleted the lock-stealing-notify branch November 20, 2023 15:01
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