s9tpepper/MongoAS3 — Issue #5: different document result (runCommand) localhost/remote
Author: fvonschrenk
Created: 2011-10-15 17:26:20+00:00
State: open

I got 2 results for

dm.db.runCommand(new Document("getLastError:")).add(onCheckInsertError);

insert on localhost (
> db.version()
1.8.1
>

> db.person.find()
{ "_id" : ObjectId("4e99be6fea8eed1891bd0546") }

The record will be inserted with this result

"document"	Object (@98e10a1)
connectionId	10 [0xa]
err	null
n	0
ok	1

insert on MongoLab (remote)
> db.version()
1.8.2

> db.person.find()
{ "_id" : ObjectId("4e99bf0c2cc361e587e6ed7b") }

The record will be inserted with this result.

"document"	Object (@99edfb9)
1.53855329053509E169
n	0

on both databases the record is inserted
but the document result is different