[SERVER-4381] getLastError returns n:0 after insert, always Created: 29/Nov/11  Updated: 31/Jan/14  Resolved: 13/Sep/12

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-7033 Provide details about successes and e... Closed
Related
is related to SERVER-9038 New write operation method for insert... Closed
Participants:

 Description   

> db.user.insert({_id:"test2"})
> db.getLastErrorObj()         
{
	"n" : 0,
	"lastOp" : NumberLong("5680229325681459201"),
	"connectionId" : 2,
	"err" : null,
	"ok" : 1
}


Generated at Thu Feb 08 03:05:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.