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

Coverity analysis defect 105236: Uninitialized scalar field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.9
    • Component/s: WiredTiger
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2019-02-11, Storage NYC 2019-02-25

      Description

      A scalar field is not initialized by the constructor

      Defect 105236 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp
      Function mongo::WiredTigerSessionCache::WiredTigerSessionCache(__wt_connection *, mongo::ClockSource *)
      /src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h, line: 336
      Class member declaration for "_lastCommitOrAbortCounter".

              std::uint64_t _lastCommitOrAbortCounter;

      /src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp, line: 241
      Non-static class member "_lastCommitOrAbortCounter" is not initialized in this constructor nor in any functions that it calls.

              : _engine(NULL), _conn(conn), _clockSource(cs), _shuttingDown(0) {}

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: