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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: