Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1285

aggregate sets read preference option incorrectly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: Implementation
    • Labels:
      None

      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;
         }
      

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: