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

    • Fully Compatible
    • ALL
    • Storage NYC 2018-11-05

      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.

          }
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: