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

Coverity analysis defect 105081: Uninitialized scalar field index_catalog_impl.h IndexBuildBlock::_inProgress

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.5
    • Component/s: Indexing
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2018-11-05

      Description

      A scalar field is not initialized by the constructor

      Defect 105081 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/catalog/index_catalog_impl.cpp
      Function mongo::IndexCatalogImpl::IndexBuildBlock::IndexBuildBlock(mongo::OperationContext , mongo::Collection *, mongo::IndexCatalogImpl, const mongo::BSONObj &)
      /src/mongo/db/catalog/index_catalog_impl.h, line: 295
      Class member declaration for "_inProgress".

                  bool _inProgress;

      /src/mongo/db/catalog/index_catalog_impl.cpp, line: 297
      Non-static class member "_inProgress" is not initialized in this constructor nor in any functions that it calls.

          }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: