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

Add index field names to keyValue when constructing DuplicateKeyErrorInfo

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.2.0-rc4, 4.3.1
    • 4.2.0-rc3
    • Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Query 2019-07-29

    Description

      When constructing a DuplicateKeyErrorInfo object we pass a keyValue object that contains an empty string and a value for each element of a compound index. This allows for a BSONObj that has the same field name (empty string) duplicated for multiple fields. We should instead replace the empty string with the actual index key field name.

      Attachments

        Activity

          People

            james.wahlin@mongodb.com James Wahlin
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: