summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/txn_cmds.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-06-07 11:54:35 -0400
committerJudah Schvimer <judah@mongodb.com>2018-06-07 11:54:35 -0400
commitda63637defad5975040f8eac0e98c86c8d8e2533 (patch)
treee4ebf901a2fef4b8367e1adec35cd9113d5d9640 /src/mongo/db/commands/txn_cmds.cpp
parent6a66e646c41071c5bf0e28d885a758e05f353536 (diff)
downloadmongo-da63637defad5975040f8eac0e98c86c8d8e2533.tar.gz
SERVER-34824 Make prepareTransaction command write a prepare oplog entry and use its optime as the prepare timestamp
Diffstat (limited to 'src/mongo/db/commands/txn_cmds.cpp')
-rw-r--r--src/mongo/db/commands/txn_cmds.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/txn_cmds.cpp b/src/mongo/db/commands/txn_cmds.cpp
index 650c1012c40..db96037f735 100644
--- a/src/mongo/db/commands/txn_cmds.cpp
+++ b/src/mongo/db/commands/txn_cmds.cpp
@@ -101,7 +101,6 @@ public:
MONGO_FAIL_POINT_DEFINE(pauseAfterTransactionPrepare);
-// TODO: This is a stub for testing storage prepare functionality.
class CmdPrepareTxn : public BasicCommand {
public:
CmdPrepareTxn() : BasicCommand("prepareTransaction") {}
@@ -119,7 +118,7 @@ public:
}
std::string help() const override {
- return "Preprares a transaction. THIS IS A STUB FOR TESTING.";
+ return "Prepares a transaction. This is only expected to be called by mongos.";
}
Status checkAuthForOperation(OperationContext* opCtx,