Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23374

Coverity analysis defect 98187: Structurally dead code

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • Replication
    • Fully Compatible
    • ALL

    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;

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: