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 #1031: concurrent map writes #1035

Merged
merged 2 commits into from Apr 21, 2021
Merged

Fix #1031: concurrent map writes #1035

merged 2 commits into from Apr 21, 2021

Conversation

bjornouderoelink
Copy link
Contributor

This PR should fix a concurrent map writes bug by making the opts values map in different connections not reference the same underlying data.
It should also fix the sslinline functionality by not deleting the necessary key(s) but instead not sending them to Postgres, allowing multiple connections to upgrade to SSL.

For more information, see the discussion in issue #1031.

This commit should fix an issue with concurrent map writes by making the
opts values map in separate connections not reference the same
underlying data.
The sslinline functionality would delete the required keys after
upgrading the first connection.
This commit adds the sslinine key to
the isDriverSetting so that it is not sent to
Posgres which would cause a crash.
It also removes the delete of the keys necessary for sslinline to allow
SSL upgrades for connections after the first one.
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

2 participants