summaryrefslogtreecommitdiff
path: root/src/mongo/db/session_catalog.h
diff options
context:
space:
mode:
authorPavithra Vetriselvan <pavithra.vetriselvan@mongodb.com>2018-02-21 14:34:30 -0500
committerPavithra Vetriselvan <pavithra.vetriselvan@mongodb.com>2018-02-21 14:37:24 -0500
commit2d23f45b457d156a5e5f97de4a811cfe44b4fb0a (patch)
tree1914dc3c8b48f1ce4963a11ee5a3ab4e2a4bf046 /src/mongo/db/session_catalog.h
parent6883cdb23ea001e0164c69b0c8f800f5e71232c7 (diff)
downloadmongo-2d23f45b457d156a5e5f97de4a811cfe44b4fb0a.tar.gz
SERVER-32880 Parse and add autocommit parameter to Session
Diffstat (limited to 'src/mongo/db/session_catalog.h')
-rw-r--r--src/mongo/db/session_catalog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/session_catalog.h b/src/mongo/db/session_catalog.h
index 0451147f786..4d4eb28f63e 100644
--- a/src/mongo/db/session_catalog.h
+++ b/src/mongo/db/session_catalog.h
@@ -246,7 +246,10 @@ class OperationContextSession {
MONGO_DISALLOW_COPYING(OperationContextSession);
public:
- OperationContextSession(OperationContext* opCtx, bool checkOutSession);
+ OperationContextSession(OperationContext* opCtx,
+ bool checkOutSession,
+ boost::optional<bool> autocommit);
+
~OperationContextSession();
static Session* get(OperationContext* opCtx);