[SERVER-12404] err field can appear twice in getLastError response Created: 17/Jan/14  Updated: 11/Jul/16  Resolved: 29/Jan/14

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-12474 mongos gle no longer returns updatedE... Closed
Operating System: ALL
Participants:

 Description   

Easiest way to reproduce this is to call getLastError with a fresh mongo shell session:

> db.runCommand({ getLastError: 1 })
{
	"connectionId" : 1,
	"n" : 0,
	"syncMillis" : 0,
	"writtenTo" : null,
	"err" : null,
	"err" : null,
	"ok" : 1
}



 Comments   
Comment by Githook User [ 29/Jan/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-12404 don't double report null err field, don't suppress err in sharded gle
Branch: master
https://github.com/mongodb/mongo/commit/dab7af2409c775a69489fe09f72f39c1b4f445aa

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