Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different document result (runCommand) localhost/remote #5

Open
fvonschrenk opened this issue Oct 15, 2011 · 3 comments
Open

different document result (runCommand) localhost/remote #5

fvonschrenk opened this issue Oct 15, 2011 · 3 comments
Assignees

Comments

@fvonschrenk
Copy link

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

@s9tpepper
Copy link
Owner

I don't quite understand the issue. What I see is two different documents that got inserted with different "_id" properties, which is expected as that hash should always be unique and is automatically created by MongoDB. Am I missing something else?

@fvonschrenk
Copy link
Author

When accessing the remote computer, there is no ok.

var document:Object = opReply.documents[0];
//if (document.ok == 1)
//{
pointer=0;
dispatch(new PersonEvent(PersonEvent.REMOVED));
find();
//}

document.ok is missing.

2011/10/21 Omar Gonzalez <
[email protected]>

I don't quite understand the issue. What I see is two different documents
that got inserted with different "_id" properties, which is expected as that
hash should always be unique and is automatically created by MongoDB. Am I
missing something else?

Reply to this email directly or view it on GitHub:
#5 (comment)

@s9tpepper
Copy link
Owner

Thanks, I'm going to have to install 1.8.2 locally and run some tests. I haven't tested against 1.8.2.

@ghost ghost assigned s9tpepper Mar 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants