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: decrement pool size when connection is released #895

Merged
merged 2 commits into from
Dec 18, 2020

Conversation

andrewwhitehead
Copy link
Contributor

@andrewwhitehead andrewwhitehead commented Dec 13, 2020

This fixes an issue where the use of PoolConnection::release would later cause Pool::close to enter an infinite loop.

Update: I merged the suggested fix from #897

@mehcode mehcode requested a review from abonander December 17, 2020 08:57
sqlx-core/src/pool/connection.rs Outdated Show resolved Hide resolved
sqlx-core/src/pool/inner.rs Outdated Show resolved Hide resolved
@andrewwhitehead
Copy link
Contributor Author

@abonander I've applied the changes, thanks.

@abonander abonander merged commit b188c83 into launchbadge:master Dec 18, 2020
@abonander
Copy link
Collaborator

Great, thanks!

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