[SERVER-31348] Fix comparison of timestamps in report_latest_observed_optime.js Created: 02/Oct/17  Updated: 30/Oct/23  Resolved: 03/Oct/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Shell
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2017-10-02, Repl 2017-10-23
Participants:
Linked BF Score: 0

 Description   

The shell does not correctly compare Timestamps, so we need to manually compare the 'getTime()' and the 'getInc()' values individually.



 Comments   
Comment by Githook User [ 03/Oct/17 ]

Author:

{'email': 'charlie.swanson@mongodb.com', 'name': 'Charlie Swanson', 'username': 'cswanson310'}

Message: SERVER-31348 Prefer bsonWoCompare over Timestamp comparison in shell.
Branch: master
https://github.com/mongodb/mongo/commit/b6e4042ea3e04c47562f94a3d784ab1b3a06e3dc

Generated at Thu Feb 08 04:26:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.