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

$set issue: have conflicting mods in update

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Querying
    • None
    • Environment:
      x86_64 GNU/Linux
    • Linux
    • Hide

      Mongo > db.test1.insert(

      { a : 1 }

      )
      Mongo > db.test1.update(

      { a: 1}

      , {$set: { 'b.c': 1, 'b.c.a': 1 }})
      have conflicting mods in update

      Show
      Mongo > db.test1.insert( { a : 1 } ) Mongo > db.test1.update( { a: 1} , {$set: { 'b.c': 1, 'b.c.a': 1 }}) have conflicting mods in update

      In the update operation if one of the updated key is prefix of any other updated key, I am getting "have conflicting mods in update" error. We are facing issue in our production system. Can someone throw some light if this is an expected behavior or there is some issue?

            Assignee:
            Unassigned Unassigned
            Reporter:
            abhishekiitg10@gmail.com Abhishek Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: