summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.h
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/repl/oplog.h
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/repl/oplog.h')
-rw-r--r--src/mongo/db/repl/oplog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h
index 7c569e7d3aa..b4d34ca0ef6 100644
--- a/src/mongo/db/repl/oplog.h
+++ b/src/mongo/db/repl/oplog.h
@@ -126,6 +126,7 @@ std::vector<OpTime> logInsertOps(OperationContext* opCtx,
* oplogLink this contains the timestamp that points to the previous write that will be
* linked via prevTs, and the timestamps of the oplog entry that contains the document
* before/after update was applied. The timestamps are ignored if isNull() is true.
+ * prepare this specifies if the oplog entry should be put into a 'prepare' state.
*
* Returns the optime of the oplog entry written to the oplog.
* Returns a null optime if oplog was not modified.
@@ -140,7 +141,8 @@ OpTime logOp(OperationContext* opCtx,
Date_t wallClockTime,
const OperationSessionInfo& sessionInfo,
StmtId stmtId,
- const OplogLink& oplogLink);
+ const OplogLink& oplogLink,
+ bool prepare);
// Flush out the cached pointer to the oplog.
// Used by the closeDatabase command to ensure we don't cache closed things.