[SERVER-716] $inc updates on nested fields are incorrect in opLog Created: 08/Mar/10  Updated: 12/Jul/16  Resolved: 08/Mar/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.3.4

Type: Bug Priority: Critical - P2
Reporter: Mathias Stearn Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

> 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 }

} }



 Comments   
Comment by auto [ 08/Mar/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: inc embedded repl fix SERVER-716
http://github.com/mongodb/mongo/commit/91f3fcf6dfaea756032960aee0bbc27bc21b6236

Comment by auto [ 08/Mar/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-716 add failing test
http://github.com/mongodb/mongo/commit/2133974f5fe37fe871a4e597233aa32a28761b19

Comment by Aaron Staple [ 08/Mar/10 ]

Looks like you rewrote the update code, so it might be more efficient for you to fix. But if you want me to do it, you can reassign to me.

Comment by Mathias Stearn [ 08/Mar/10 ]

This is not caused by http://jira.mongodb.org/browse/SERVER-718. I've validated that this also occurs when using mongosniff.

Generated at Thu Feb 08 02:54:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.