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

Add index field names to keyValue when constructing DuplicateKeyErrorInfo

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc4, 4.3.1
    • Affects Version/s: 4.2.0-rc3
    • Component/s: Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Query 2019-07-29

      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.

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

              Created:
              Updated:
              Resolved: