[SERVER-8984] DBClientInterface::getLastError should test for command failures Created: 14/Mar/13  Updated: 05/Nov/15  Resolved: 20/Mar/13

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.0.8, 2.2.3, 2.4.0-rc3
Fix Version/s: 2.2.4, 2.4.2, 2.5.0

Type: Bug Priority: Critical - P2
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: commands, failure, getLastError
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-6639 getLastError to Mongos gives an empty... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

In DBClientWithCommand::getLastErrorString(...)

We should check that isOk(info) and if not, return info["errmsg"]



 Comments   
Comment by auto [ 25/Mar/13 ]

Author:

{u'date': u'2013-03-20T14:56:00Z', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-8984: gle c++ client helper should check for command failure
Branch: v2.4
https://github.com/mongodb/mongo/commit/ab32409b04abee6f503313895428c0889000928b

Comment by auto [ 25/Mar/13 ]

Author:

{u'date': u'2013-03-20T14:56:00Z', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-8984: gle c++ client helper should check for command failure
Branch: v2.2
https://github.com/mongodb/mongo/commit/cb9f8b361e6559ed72fb302be273ea979541b246

Comment by auto [ 20/Mar/13 ]

Author:

{u'date': u'2013-03-20T14:56:00Z', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-8984: gle c++ client helper should check for command failure
Branch: master
https://github.com/mongodb/mongo/commit/0a7b61a2941ee3a9180ca2dda8740944ca8a8d05

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