-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2018-04-23
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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();