summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_id.idl
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2018-04-04 17:08:04 -0400
committerWilliam Schultz <william.schultz@mongodb.com>2018-04-04 17:14:47 -0400
commit66c537372c0aa54819adb7f72c9eda6cf8750f8e (patch)
tree18411741fc99e04f2c9d89d2c61e70f22c1bbd3f /src/mongo/db/logical_session_id.idl
parent69005c338fe103892d2941791b12f5c06aae3394 (diff)
downloadmongo-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/logical_session_id.idl')
-rw-r--r--src/mongo/db/logical_session_id.idl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_id.idl b/src/mongo/db/logical_session_id.idl
index d5639ddea69..6c83839e471 100644
--- a/src/mongo/db/logical_session_id.idl
+++ b/src/mongo/db/logical_session_id.idl
@@ -115,6 +115,11 @@ structs:
autocommit:
type: bool
optional: true
+ startTransaction:
+ description: "Used to indicate that a command is the start of a multi-statement
+ transaction."
+ type: bool
+ optional: true
SessionsCollectionFetchResultIndividualResult:
description: "Individual result"