-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bulkWrite): always count undefined values in bson size for bulk
Bulk Writes use bson.calculateObjectSize to determine the size of batches. However, it was not respecting user or default option values like ignoreUndefined, which lead to bulkWrite errors in some edge cases. To be safe, it now always sets ignoreUndefined to false. Fixes NODE-1898
- Loading branch information
1 parent
73ef728
commit 436d340
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters