[SERVER-35760] addShard() is missing a check to see if a status is okay before processing it further Created: 22/Jun/18  Updated: 29/Oct/23  Resolved: 22/Jun/18

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

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-07-02
Participants:
Linked BF Score: 15

 Description   

In this commit, a few lines were refactored into a local lambda function, but the check here was not ported over:
https://github.com/mongodb/mongo/commit/09919208ae16cd44f3ca3e98220e1cc322419a8a#diff-64f8569158f82fc1a18681d15ce10b4aL651

This can lead to issues when trying to process the command further.



 Comments   
Comment by Githook User [ 22/Jun/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com'}

Message: SERVER-35760 Add status check in addShard
Branch: master
https://github.com/mongodb/mongo/commit/a5e78c5cac31b22983cf4fc546329a85c0927fe9

Generated at Thu Feb 08 04:40:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.