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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.4
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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 Horowitz (Inactive)
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: