Ignore writeConcern option for read-only aggregations

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.17.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jérôme Tamarelle
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: