[SERVER-717] $inc not transformed to $set if it creates a field 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: Major - P3
Reporter: Mathias Stearn Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

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

} }



 Comments   
Comment by auto [ 08/Mar/10 ]

Author:

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

Message: fix idempotency of initial $inc SERVER-717
http://github.com/mongodb/mongo/commit/406ed2dc3f09608a319c1cb2c68fdc673e9727fd

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