[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 |
| Comment by auto [ 08/Mar/10 ] |
|
Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}Message: |
| 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. |