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

Change internal reporting order of validate()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.5.9
    • 3.5.6
    • Internal Code
    • None
    • Fully Compatible
    • TIG 2017-06-19
    • 0

    Description

      As pointed out in SERVER-28801, when there's an index key/document mismatch, both if and else if statements will be true here. But if we switch the order of the if and else if statements, we'll be able to see which specific index is invalid.

      Attachments

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: