From 66c537372c0aa54819adb7f72c9eda6cf8750f8e Mon Sep 17 00:00:00 2001 From: William Schultz Date: Wed, 4 Apr 2018 17:08:04 -0400 Subject: SERVER-34051 Require autocommit=false on all transaction operations and add support for 'startTransaction' argument This patch requires all operations that are part of a multi-statement transaction to specify an autocommit=false command argument. It also adds the 'startTransaction' command argument, which when specified as 'true' indicates that a command is the beginning of a multi-statement transaction. --- src/mongo/db/session_catalog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/session_catalog.h') diff --git a/src/mongo/db/session_catalog.h b/src/mongo/db/session_catalog.h index 657f6baf405..fcc2164ca18 100644 --- a/src/mongo/db/session_catalog.h +++ b/src/mongo/db/session_catalog.h @@ -249,7 +249,8 @@ class OperationContextSession { public: OperationContextSession(OperationContext* opCtx, bool checkOutSession, - boost::optional autocommit); + boost::optional autocommit, + boost::optional startTransaction); ~OperationContextSession(); -- cgit v1.2.1