Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-722

Ignore writeConcern option for read-only aggregations

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.17.0
    • Affects Version/s: None
    • Component/s: None

      When constructing options for Server::executeReadWriteCommand, a writeConcern option is ignored if the pipeline does not contain a write stage (e.g. $out, $merge). It may make more sense to either prohibit specifying a writeConcern if the pipeline does not write or ignore it earlier (e.g. unset it in the constructor).

      Either change would require changes to some tests within CollectionFunctionalTest, which currently use a non-writing pipeline with a writeConcern option.

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: