Coverity analysis defect 98187: Structurally dead code

XMLWordPrintableJSON

    • Replication
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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;
      

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: