summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_participant_retryable_writes_test.cpp
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/transaction_participant_retryable_writes_test.cpp
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/transaction_participant_retryable_writes_test.cpp')
-rw-r--r--src/mongo/db/transaction_participant_retryable_writes_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/transaction_participant_retryable_writes_test.cpp b/src/mongo/db/transaction_participant_retryable_writes_test.cpp
index cc0deda8ad6..b78c62518a5 100644
--- a/src/mongo/db/transaction_participant_retryable_writes_test.cpp
+++ b/src/mongo/db/transaction_participant_retryable_writes_test.cpp
@@ -219,6 +219,7 @@ protected:
stmtId,
link,
false /* prepare */,
+ false /* inTxn */,
OplogSlot());
}
@@ -587,6 +588,7 @@ TEST_F(TransactionParticipantRetryableWritesTest, ErrorOnlyWhenStmtIdBeingChecke
1,
{},
false /* prepare */,
+ false /* inTxn */,
OplogSlot());
txnParticipant.onWriteOpCompletedOnPrimary(
opCtx(), txnNum, {1}, opTime, wallClockTime, boost::none);
@@ -616,6 +618,7 @@ TEST_F(TransactionParticipantRetryableWritesTest, ErrorOnlyWhenStmtIdBeingChecke
kIncompleteHistoryStmtId,
link,
false /* prepare */,
+ false /* inTxn */,
OplogSlot());
txnParticipant.onWriteOpCompletedOnPrimary(