summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.h
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-02-21 14:48:32 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2019-02-22 17:44:41 -0500
commited0a7b7c559962e68c5ca25654fe5534325b3e86 (patch)
treed280694024a8964f61dd97647d8c0fa2c2afecfd /src/mongo/db/repl/oplog.h
parent2ab2ae3bad12e4aa60bc4dd3708d46d7b031fd79 (diff)
downloadmongo-ed0a7b7c559962e68c5ca25654fe5534325b3e86.tar.gz
SERVER-39431 Write oplog entries with "inTxn" field before commit for large transactions
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r--src/mongo/db/repl/oplog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h
index a65c6203db5..d04dab93a78 100644
--- a/src/mongo/db/repl/oplog.h
+++ b/src/mongo/db/repl/oplog.h
@@ -128,6 +128,7 @@ std::vector<OpTime> logInsertOps(OperationContext* opCtx,
* 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.
+ * inTxn this specifies that the oplog entry is part of a transaction in progress.
* oplogSlot If non-null, use this reserved oplog slot instead of a new one.
*
* Returns the optime of the oplog entry written to the oplog.
@@ -145,6 +146,7 @@ OpTime logOp(OperationContext* opCtx,
StmtId stmtId,
const OplogLink& oplogLink,
bool prepare,
+ bool inTxn,
const OplogSlot& oplogSlot);
// Flush out the cached pointer to the oplog.