convertToCapped parses the size field as a number. This double is later assigned to a long long.
Normally the validation will fail, bubbling up to the user, when the collection options (now a BSON object) gets parsed into another CollectionOptions for creating the collection. But a pedantic compiler may generate a binary that catches something going wrong earlier (at the assignment itself).
- is related to
-
SERVER-35410 convert_to_capped.js needs incompatible_with_embedded tag
- Closed