Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
Query Execution
Description
As part of the collation project, SERVER-24508 introduced BSONElement::ComparatorInterface. This new interface can be used to compare or hash BSONElements in a way that respects a collator.
The codebase still contains a few older comparator objects that can be used to make comparisons between BSONElements. These are inferior because they do not support comparing with respect to a collation. They should be deleted, and callers should be ported to use the BSONElement::ComparatorInterface. Specifically, we should do the following:
- Remove BSONElementCmpWithoutField.
- Update the BSONElementSet and BSONElementMSet type aliases to use BSONElement::ComparatorInterface.
- Update BSONObjIteratorSorted to use BSONElement::ComparatorInterface.
Attachments
Issue Links
- related to
-
SERVER-24508 Make BSONObj/BSONElement and Document/Value with collations compatible for use with ordered STL containers
-
- Closed
-