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

$setOnInsert mods should not conflict with non-insert modifiers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:

      Description

      This command results in a conflict:

      db.test.update({_id:13},{$setOnInsert : {"name" : [null, "welt"]}, $set : {"name.0" : "wooorld"}}, { upsert: true });

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                46 Vote for this issue
                Watchers:
                44 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: