[CDRIVER-1367] Validate read preferences during server selection Created: 08/Jul/16 Updated: 07/Mar/23 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Since functions like mongoc_read_prefs_set_mode do not validate the read pref, and cannot return an error, we need some other place to validate the read preference. Check _mongoc_read_prefs_validate in mongoc_topology_description_select. |