Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6060

ReplSetConfig::operator== may incorrectly return true if two instances differ only in the value of buildIndexes.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.1
    • Component/s: Replication
    • None
    • ALL

      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;
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: