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

GODRIVER-2305 Correctly append empty TagSet #853

Merged
merged 1 commit into from Feb 17, 2022
Merged

GODRIVER-2305 Correctly append empty TagSet #853

merged 1 commit into from Feb 17, 2022

Conversation

benjirewis
Copy link
Contributor

@benjirewis benjirewis commented Feb 16, 2022

GODRIVER-2305

GODRIVER-1078 previously "fixed" behavior for empty tag sets provided in the URI (readPreferenceTags=) to simply skip instead of error. In reality, readPreferenceTags= in the URI represents a wild-card that should match any server with any tags (see docs here).

Appends map[string]string{} to tag sets if readPreferenceTags= is encountered. Fixes associated tests in connstring_test.go.

@benjirewis benjirewis marked this pull request as ready for review February 16, 2022 19:28
@benjirewis benjirewis merged commit ee15231 into mongodb:master Feb 17, 2022
@benjirewis benjirewis deleted the emptyReadPrefTags.2305 branch February 17, 2022 15:39
faem pushed a commit to kubedb/mongo-go-driver that referenced this pull request Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants