[CDRIVER-3732] mongoc_client_select_server incorrectly documents default read preference Created: 01/Jul/20 Updated: 28/Oct/23 Resolved: 18/Dec/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | docs |
| Affects Version/s: | None |
| Fix Version/s: | 1.18.0, 1.18.0-alpha |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Samantha Ritter (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The documentation of mongoc_client_select_server claims that the read preference is inherited by the client if NULL:
But the implemented behavior appears to default to primary (much like the generic command helpers like mongoc_client_command_simple (). We should validate this behavior. The existing write concern / read concern / read preference inheritance tests (in test-mongoc-opts.c) do not test mongoc_client_select_server. See this PR conversation for more context. |
| Comments |
| Comment by Githook User [ 18/Dec/20 ] |
|
Author: {'name': 'Samantha Ritter', 'email': 'samantha.ritter@10gen.com', 'username': 'samantharitter'}Message: |
| Comment by Samantha Ritter (Inactive) [ 16/Dec/20 ] |
|
Code review: https://github.com/mongodb/mongo-c-driver/pull/710 |