[SERVER-21283] Coverity analysis defect 76654: Structurally dead code Created: 04/Nov/15  Updated: 17/Nov/15  Resolved: 04/Nov/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.2.0-rc2
Fix Version/s: 3.2.0-rc3

Type: Bug Priority: Trivial - P5
Reporter: Coverity Collector User Assignee: Kaloian Manassiev
Resolution: Done 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 C (11/20/15)
Participants:

 Description   

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

Defect 76654 (STATIC_C)
Checker UNREACHABLE (subcategory none)
File: /src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp
Function mongo::CatalogManagerLegacy::_createCappedConfigCollection(mongo::OperationContext *, mongo::StringData, int)
/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp, line: 1147
This code cannot be reached: "return mongo::Status(mongo:...".

        return Status::OK();



 Comments   
Comment by Githook User [ 04/Nov/15 ]

Author:

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

Message: SERVER-21283 Remove unreachable return statement in CatalogManagerLegacy
Branch: master
https://github.com/mongodb/mongo/commit/a93af700d4746da32b06c346f2bfbc165bc2a8a4

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