diff options
author | William Schultz <william.schultz@mongodb.com> | 2018-04-04 17:08:04 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2018-04-04 17:14:47 -0400 |
commit | 66c537372c0aa54819adb7f72c9eda6cf8750f8e (patch) | |
tree | 18411741fc99e04f2c9d89d2c61e70f22c1bbd3f /src/mongo/db/session_catalog.h | |
parent | 69005c338fe103892d2941791b12f5c06aae3394 (diff) | |
download | mongo-66c537372c0aa54819adb7f72c9eda6cf8750f8e.tar.gz |
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.
Diffstat (limited to 'src/mongo/db/session_catalog.h')
-rw-r--r-- | src/mongo/db/session_catalog.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<bool> autocommit); + boost::optional<bool> autocommit, + boost::optional<bool> startTransaction); ~OperationContextSession(); |