-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.8.4, 2.0.1
-
Component/s: Write Ops
-
None
-
Environment:all
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
If an update() command contains multiple $push statements, only the last one will be executed.
To reproduce:
> db.test.drop()
true
> db.test.save({_id:1, "array1":[0], "array2":["a"]})
> db.test.find()
> db.test.update({_id:1}, {$push:
{"array1":1}, $push:{"array2":"b"}})
> db.test.find()