summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-03-02 12:59:42 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2018-03-02 13:19:58 -0500
commit298eefdb76266b5c34ac1e7966153004d84fc899 (patch)
tree3a05856442aa4c627bf148d38275cb6d702aa931 /src
parent522c306f159e4cd741068a20a3e82c7a8bcc26af (diff)
downloadmongo-298eefdb76266b5c34ac1e7966153004d84fc899.tar.gz
SERVER-33622 Make sure txnState is initialized in Session
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index 5cf9bec1467..63f1bb2b207 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -312,7 +312,7 @@ private:
kCommitting,
kCommitted,
kAborted
- } _txnState;
+ } _txnState = MultiDocumentTransactionState::kNone;
// Holds oplog data for operations which have been applied in the current multi-document
// transaction. Not used for retryable writes.