[SERVER-34475] Coverity analysis defect 103493: Structurally dead code Created: 13/Apr/18  Updated: 29/Oct/23  Resolved: 18/Apr/18

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

Type: Bug Priority: Minor - P4
Reporter: Coverity Collector User Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-04-23
Participants:

 Description   

Code block is unreachable because of the syntactic structure of the code

Defect 103493 (STATIC_C)
Checker UNREACHABLE (subcategory none)
File: /src/mongo/s/commands/cluster_commands_helpers.cpp
Function mongo::computeAtClusterTime(mongo::OperationContext *, bool, const std::set<mongo::ShardId, std::less<mongo::ShardId>, std::allocator<mongo::ShardId>> &, const mongo::NamespaceString &, mongo::BSONObj, mongo::BSONObj)
/src/mongo/s/commands/cluster_commands_helpers.cpp, line: 588
This code cannot be reached: "auto shardRegistry = mongo:...".

        auto shardRegistry = Grid::get(opCtx)->shardRegistry();



 Comments   
Comment by Githook User [ 18/Apr/18 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm', 'name': 'Kaloian Manassiev'}

Message: SERVER-34475 Get rid of unused sharding code
Branch: master
https://github.com/mongodb/mongo/commit/18559378f462afe58449db3dda4f9263b74d8d60

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