diff options
author | Divjot Arora <divjot.arora@10gen.com> | 2019-02-11 12:07:07 -0500 |
---|---|---|
committer | Divjot Arora <divjot.arora@10gen.com> | 2019-02-13 15:16:08 -0500 |
commit | ef21e1e71d57c362cf7cf34a21dbb4554788465c (patch) | |
tree | a52d33e93881426276e2230abe2c975258ab944f /src | |
parent | f910e93260a6a76b432510a7beef9593e42ec872 (diff) | |
download | mongo-ef21e1e71d57c362cf7cf34a21dbb4554788465c.tar.gz |
SERVER-39047 Initialize _lastCommitOrAbortCounter in constructors
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp index 3d4038aab1d..a77312b85b2 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp @@ -235,10 +235,15 @@ WiredTigerSessionCache::WiredTigerSessionCache(WiredTigerKVEngine* engine) : _engine(engine), _conn(engine->getConnection()), _clockSource(_engine->getClockSource()), - _shuttingDown(0) {} + _shuttingDown(0), + _lastCommitOrAbortCounter(0) {} WiredTigerSessionCache::WiredTigerSessionCache(WT_CONNECTION* conn, ClockSource* cs) - : _engine(NULL), _conn(conn), _clockSource(cs), _shuttingDown(0) {} + : _engine(nullptr), + _conn(conn), + _clockSource(cs), + _shuttingDown(0), + _lastCommitOrAbortCounter(0) {} WiredTigerSessionCache::~WiredTigerSessionCache() { shuttingDown(); |