-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
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.
- 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.
- We currently only set nModified for an update response, we should set the n field also
- 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