[CXX-1301] Read preference constants should be mapped to libmongoc constants Created: 06/Apr/17  Updated: 05/Jul/17  Resolved: 23/May/17

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Task Priority: Minor - P4
Reporter: David Golden Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The constants for mode (k_primary_preferred) hard code values. This risks being out of sync with libmongoc if they ever change their values. We should map our values to theirs using their constants, as we do for read concerns.



 Comments   
Comment by Githook User [ 23/May/17 ]

Author:

{u'username': u'saghm', u'name': u'Saghm Rossi', u'email': u'saghmrossi@gmail.com'}

Message: CXX-1301 Map read preference constants to libmongoc constants
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/21d8cd1078c51b665abb412c0c5c9b1e78688b7e

Generated at Wed Feb 07 22:02:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.