summaryrefslogtreecommitdiff
path: root/src/mongo/idl/basic_types.idl
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2021-02-15 07:34:37 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-15 13:19:59 +0000
commit16aff18cbb6b993ac325a50a59b1898d35cf08c3 (patch)
treefc4e25eda6e89b32808ff3b4a0f505299c84c286 /src/mongo/idl/basic_types.idl
parent186dba5206e813e417141b83aca656601a587207 (diff)
downloadmongo-16aff18cbb6b993ac325a50a59b1898d35cf08c3.tar.gz
SERVER-54482 Fix crash if collation.backwards param is undefined/null
Diffstat (limited to 'src/mongo/idl/basic_types.idl')
-rw-r--r--src/mongo/idl/basic_types.idl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl
index c82abccf4f7..1bac48374f5 100644
--- a/src/mongo/idl/basic_types.idl
+++ b/src/mongo/idl/basic_types.idl
@@ -384,10 +384,10 @@ structs:
type: bool
default: false
# Causes accent differences to be considered in reverse order, as it is done in the
- # French language.
+ # French language. Note: the optionalBool parser rejects null/undefined inputs, which
+ # preserves an invariant in updateCollationSpecFromICUCollator.
backwards:
- type: bool
- optional: true
+ type: optionalBool
# Indicates the version of the collator. It is used to ensure that we do not mix
# versions by, for example, constructing an index with one version of ICU and then
# attempting to use this index with a server that is built against a newer ICU version.