-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.8.0-rc0
-
Component/s: Write Ops
-
None
-
ALL
Windows 2008 Server 64
When _id is compound object then and Mongo does actual insert :
> db.coll.findAndModify({"query":
{ "_id.a": "default" }, "update": { "$inc":
{ "value": 1 }}, "new": true, "upsert": true })
exception: assertion ../bson/bsonobjbuilder.h:119", but the document is created
Then when we repeat the operation it results with proper document, and "value" is incremented.
When _id is simple type everything is ok: Mongo returns document
Again, clean database and we issue then same command but "new":false everything seems fine.
- depends on
-
SERVER-1351 GLE upserted _id field should always be filled in
- Closed