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

Coverity analysis defect 76654: Structurally dead code

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.2.0-rc3
    • Affects Version/s: 3.2.0-rc2
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding C (11/20/15)

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

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

              Created:
              Updated:
              Resolved: