$inc updates on nested fields are incorrect in opLog

XMLWordPrintableJSON

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

                Created:
                Updated:
                Resolved: