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

Coverity analysis defect 103493: Structurally dead code

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.7.6
    • None
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding 2018-04-23

    Description

      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();

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: