Make fixes to update response in bulkWrite

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-05-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      There are multiple small changes that need to be made to the update response to make it more correct.

       

      1. Upserted response field in bulkWrite currently uses write_ops::Upserted like Update does. We should use IdlAnyTypeOwned like findAndModify does since we do not need to capture the index field.
      2. We currently only set nModified for an update response, we should set the n field also
      3. When an update fails, we should still set nModified for it in the response.

       

      As part of this ticket it would also be nice to do some further cleanup by replacing the callback functions with passing around the BulkWriteReplies object and calling the functions directly

       

      This will involve updating all relevant tests

            Assignee:
            Frederic Vitzikam (Inactive)
            Reporter:
            Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: