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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      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

            Assignee:
            schwerin Andy Schwerin
            Reporter:
            schwerin Andy Schwerin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: