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.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2
    • Replication
    • None
    • ALL

    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;

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: