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

Fixed issue where wrong DB-connection was returned #35

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

patrikjohansson
Copy link
Contributor

When using multiple databases, the method get_pool_n_conn will
give the wrong database connection at times due to the method don't return early,
and any found connections can be overridden in the next iteration of the loop over the
connection pool list.

Description of changes:
This fix makes the method get_pool_n_conn return early when a matching
connection has been found.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When using multiple databases, the method get_pool_n_conn will
give the wrong database connection at times due to the method don't return early,
and any found connections can be overridden in the next iteration of the loop over the
connection pool list.

This fix makes the method get_pool_n_conn return early when a matching
connection has been found.
@shengxil shengxil merged commit 0872376 into aws:master Nov 19, 2019
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