-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Query Execution
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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.
- related to
-
SERVER-24508 Make BSONObj/BSONElement and Document/Value with collations compatible for use with ordered STL containers
-
- Closed
-