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

$inc updates on nested fields are incorrect in opLog

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

      > db.Foo.update(

      {"_id" : ObjectId("4b954d3057e0bfa9f8fd591f")}

      , {'$inc': {'a.b':1, 'b.b':1}})

      { "ts" :

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

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

      { "_id" : ObjectId("4b954d3057e0bfa9f8fd591f") }

      , "o" : { "$set" :

      { "b" : 2 }

      , "$set" :

      { "b" : 2 }

      } }

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

              Created:
              Updated:
              Resolved: