Currently we use a null CollatorInterface* to represent two different states: 1) the "simple" collator, which the user can specify with {collation: {locale: "simple"}}, and 2) the absence of a collator.
If the user does not specify a collation field with a command, the collation is unknown until we read the collection metadata, since such operations inherit the default collation set on the collection. The current implementation is awkward since we have to take extra steps to distinguish {locale: "simple"} from this "unknown" case.
- related to
-
SERVER-85572 Follow up on audit in mongos for improper usage of collation and incorrectly assuming simple collation rather than collection default
- Open
-
SERVER-76855 Audit mongos for improper usage of collation and incorrectly assuming simple collation rather than collection default
- Closed