Coverity analysis defect 105056: Uninitialized scalar field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Storage NYC 2018-10-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A scalar field is not initialized by the constructor

      Defect 105056 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/storage/biggie/biggie_kv_engine.h
      Function mongo::biggie::KVEngine::KVEngine()
      /src/mongo/db/storage/biggie/biggie_kv_engine.h, line: 155
      Class member declaration for "_cachePressureForTest".

              int _cachePressureForTest;
      

      /src/mongo/db/storage/biggie/biggie_kv_engine.h, line: 52
      Non-static class member "_cachePressureForTest" is not initialized in this constructor nor in any functions that it calls.

              KVEngine() : ::mongo::KVEngine() {}
      

            Assignee:
            Gregory Wlodarek
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: