[SERVER-6060] ReplSetConfig::operator== may incorrectly return true if two instances differ only in the value of buildIndexes. Created: 11/Jun/12  Updated: 11/Jul/16  Resolved: 25/Mar/13

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.1.1
Fix Version/s: 2.1.2

Type: Bug Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Note the last clause. Should really be

buildIndex == r.buildIndexes

, not

buildIndexes == buildIndexes

.

                return _id==r._id && votes == r.votes && h == r.h && priority == r.priority &&
                       arbiterOnly == r.arbiterOnly && slaveDelay == r.slaveDelay && hidden == r.hidden &&
                       buildIndexes == buildIndexes;



 Comments   
Comment by auto [ 13/Jun/12 ]

Author:

{u'date': u'2012-06-11T07:35:52-07:00', u'email': u'schwerin@10gen.com', u'name': u'Andy Schwerin'}

Message: SERVER-6060: Fix comparison operator ReplSetConfig::operator==.
Branch: master
https://github.com/mongodb/mongo/commit/39031a8d3909b1d85b45b60655cb1dd7c226ad96

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