[CXX-1285] aggregate sets read preference option incorrectly Created: 23/Mar/17  Updated: 29/Mar/17  Resolved: 29/Mar/17

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

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CXX-1284 aggregate on secondary fails plus max... Closed

 Description   

When given a read preference in the options to aggregate, read preferences are set from the collection object instead of the option:

   if (options.read_preference()) {
       rp_ptr = read_preference()._impl->read_preference_t;
   }



 Comments   
Comment by Githook User [ 29/Mar/17 ]

Author:

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

Message: CXX-1285 aggregate sets read preference option incorrectly
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/06845dadaf069f7493e9415552533f32e810c2ec

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