[GODRIVER-407] implicit readPreference not allowed Created: 05/May/18 Updated: 28/Oct/23 Resolved: 10/May/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Connections, Options & Configuration, Server Selection |
| Affects Version/s: | 0.0.4 |
| Fix Version/s: | 0.0.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tim Gerk | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
go version go1.10.2 darwin/amd64 |
||
| Issue Links: |
|
||||||||
| Description |
|
A seg-fault occurred when running documentation example test. I determined that "readPreference" was assumed to always be explicit in connection string, and if missing server selection for read operations failed due to use of an undefined ```ReadPref``` context. |
| Comments |
| Comment by Githook User [ 10/May/18 ] |
|
Author: {'name': 'Tim Gerk', 'email': 'tjgerk@gmail.com', 'username': 'tgerk'}Message: includes reviewer's requested change |
| Comment by Githook User [ 10/May/18 ] |
|
Author: {'name': 'Tim Gerk', 'email': 'tjgerk@gmail.com', 'username': 'tgerk'}Message: |
| Comment by Kristofer Brandow (Inactive) [ 10/May/18 ] |
|
Code Review: https://github.com/mongodb/mongo-go-driver/pull/52. |
| Comment by Tim Gerk [ 06/May/18 ] |
|
Oops, introduced by case 396 |