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

$inc not transformed to $set if it creates a field

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.4
    • Affects Version/s: None
    • Component/s: Replication
    • None

      > db.c.remove({_id:0})
      > db.c.insert({_id:0})
      > db.c.update(

      {"_id" : 0}

      , {'$inc': {'z':1}})

      { "ts" :

      { "t" : 1268077684000, "i" : 1 }

      , "op" : "u", "ns" : "test.c", "o2" :

      { "_id" : 0 }

      , "o" : { "$inc" :

      { "z" : 1 }

      } }

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: