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

Coverity analysis defect 76654: Structurally dead code

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 3.2.0-rc3
    • 3.2.0-rc2
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding C (11/20/15)

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

      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: