Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.5.3
-
None
-
None
-
ALL
Description
> db.user.insert({ x: 1, _id: 2 })
|
> db.user.find()
|
{ "_id" : 2, "x" : 1 }
|
> db.user.drop()
|
true
|
> db.runCommand({ insert: 'user', documents: [{ x: 1, _id: 2 }]})
|
{ "ok" : 1, "n" : 1 }
|
> db.user.find()
|
{ "x" : 1, "_id" : 2 }
|
Not sure if moving _id field to the front is the desired behavior, but eval8.js fails if we switch to using write commands because of this.
Attachments
Issue Links
- duplicates
-
SERVER-11656 js_small_oplog failing because master and slave collection hashes differ
-
- Closed
-
- related to
-
SERVER-11558 Update (save -- upsert:true w/_id) reorders _id field
-
- Closed
-