Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-666

Write concern should not be encoded in aggregate unless $out is specified

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 0.1.0
    • None
    • None
    • None

    Description

      Running an aggregate without a $out stage on a collection that has a non-nil write concern yields the following error:

      command.Error{Code:72, Message:"Command does not support writeConcern", Labels:[]string(nil), Name:"InvalidOptions"}

      Change command/aggregate.go to only include write concern if $out is specified.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: