Coverity analysis defect 76654: Structurally dead code

XMLWordPrintableJSON

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

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: