From ef21e1e71d57c362cf7cf34a21dbb4554788465c Mon Sep 17 00:00:00 2001 From: Divjot Arora Date: Mon, 11 Feb 2019 12:07:07 -0500 Subject: SERVER-39047 Initialize _lastCommitOrAbortCounter in constructors --- src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mongo') 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(); -- cgit v1.2.1