[SERVER-8815] tautological compare in ping time sanity check Created: 01/Mar/13  Updated: 11/Jul/16  Resolved: 01/Mar/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4.0-rc2

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

... in cluster_client_internal.cpp::checkClusterMongoVersions()

We compare an unsigned arithmetic result to zero, so it'll always be >=. This would cause strange behavior in pings from different hosts with different local time.



 Comments   
Comment by auto [ 01/Mar/13 ]

Author:

{u'date': u'2013-03-01T18:07:35Z', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-8815 Fix tautological compare in checkClusterMongoVersions
Branch: master
https://github.com/mongodb/mongo/commit/f7dfdd32aa7e04388fdba10f828b3552c2f8d78e

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