diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-08-14 21:47:00 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-09-13 16:32:15 -0400 |
commit | 022c7d50ac5f7f62fd4e91df513baa56d011fc80 (patch) | |
tree | 091e7b4fe824bc4897f5fd9a29d29d14e277b3b3 /src/mongo/dbtests | |
parent | db3d9907d3934b34395a5b6f2f358994b9da5d99 (diff) | |
download | mongo-022c7d50ac5f7f62fd4e91df513baa56d011fc80.tar.gz |
SERVER-35307 Support prepared transactions on secondaries and immediately abort them.
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/storage_timestamp_tests.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index 553f693f7c6..62bd216202f 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -287,6 +287,7 @@ public: dbName, BSON("applyOps" << applyOpsList), repl::OplogApplication::Mode::kApplyOpsCmd, + {}, &result); if (!status.isOK()) { return status; @@ -305,6 +306,7 @@ public: dbName, BSON("applyOps" << applyOpsList << "allowAtomic" << false), repl::OplogApplication::Mode::kApplyOpsCmd, + {}, &result); if (!status.isOK()) { return status; @@ -645,6 +647,7 @@ public: << "o" << BSON("applyOps" << BSONArrayBuilder().obj())))), repl::OplogApplication::Mode::kApplyOpsCmd, + {}, &result)); } @@ -721,6 +724,7 @@ public: nss.db().toString(), fullCommand.done(), repl::OplogApplication::Mode::kApplyOpsCmd, + {}, &result)); @@ -2624,7 +2628,7 @@ public: } txnParticipant->unstashTransactionResources(_opCtx, "insert"); - txnParticipant->prepareTransaction(_opCtx); + txnParticipant->prepareTransaction(_opCtx, {}); txnParticipant->stashTransactionResources(_opCtx); { |