[SERVER-16708] Adjust Value::compare() to reflect changes to BSON::woCompare() Created: 02/Jan/15  Updated: 23/Jan/15  Resolved: 15/Jan/15

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 2.8.0-rc5
Fix Version/s: 3.0.0-rc6

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-4650 Update documentation to reflect order... Closed
Backwards Compatibility: Minor Change
Participants:

 Comments   
Comment by Githook User [ 15/Jan/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-16708 Make Value::compare match BSON woCompare behavior
Branch: master
https://github.com/mongodb/mongo/commit/d1910c70e2e3eb6ce057a474dece00b737645631

Comment by Githook User [ 07/Jan/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Make BSONObj::woCompare a total ordering

Changes:

  • Date and Timestamp are now distinct with all Dates before all Timestamps.
  • Numeric comparisons now correctly handle Doubles and Long > 2**53.
  • CodeWScope doesn't strcmp BSONObjs or strings which may contain NULs.

There should be no changes in any of the cases where woCompare defined a
correct total ordering before. The new behavior matches the ordering defined
by KeyString.

Related tickets:

Changes to the comparison function for aggregation will be handled separately
as SERVER-16708.
Branch: master
https://github.com/mongodb/mongo/commit/f58fa5f78a91ce36d8e31d6730ebfdaa6cc1d5ab

Generated at Thu Feb 08 03:42:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.