[SERVER-23374] Coverity analysis defect 98187: Structurally dead code Created: 28/Mar/16  Updated: 06/Dec/22  Resolved: 20/Apr/16

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Backlog - Replication Team
Resolution: Incomplete Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

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

Defect 98187 (STATIC_C)
Checker UNREACHABLE (subcategory none)
File: /src/mongo/db/repl/multiapplier.cpp
Function mongo::repl::applyUntilAndPause(mongo::repl::ReplicationExecutor *, const std::vector<mongo::repl::OplogEntry, std::allocator<mongo::repl::OplogEntry>> &, const std::function<void (const std::vector<mongo::repl::OplogEntry, std::allocator<mongo::repl::OplogEntry>> &)> &, std::function<mongo::StatusWith<mongo::repl::OpTime> (mongo::OperationContext *, const std::vector<mongo::repl::OplogEntry, std::allocator<mongo::repl::OplogEntry>> &, std::function<void (const std::vector<mongo::repl::OplogEntry, std::allocator<mongo::repl::OplogEntry>> &)>)>&, const mongo::Timestamp &, std::function<void ()>&, std::function<void (const mongo::StatusWith<mongo::Timestamp> &, const std::vector<mongo::repl::OplogEntry, std::allocator<mongo::repl::OplogEntry>> &)>&)
/src/mongo/db/repl/multiapplier.cpp, line: 226
This code cannot be reached: "mongo::invariantFailed("Hit...".

        MONGO_UNREACHABLE;


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