-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
Repl 2023-12-11
In SERVER-80293 we added a top-level nMatched field for the bulkWrite command response. Currently this just sums the n value across all individual updates. However, that leads to us also counting upserted documents toward nMatched, because n is 1 for an upsert. We should fix this so that nMatched only counts non-upserts.
- related to
-
SERVER-80293 Add more summary fields to bulkWrite response
- Closed