summaryrefslogtreecommitdiff
path: root/src/mongo/db/session_catalog_test.cpp
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2018-04-11 16:29:54 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2018-04-11 16:39:34 -0400
commit50d2f0e7eae0f500ea04a509c12d7935356c0dde (patch)
tree942f5905456014bc628a13c2ccb07d58df152a96 /src/mongo/db/session_catalog_test.cpp
parent68005e0ffcc50c9260a162b717aaa5c2225096da (diff)
downloadmongo-50d2f0e7eae0f500ea04a509c12d7935356c0dde.tar.gz
SERVER-33501 Support retryable writes for commitTransaction command
This reverts commit f205975ea89798fa1b6d91097226ae7b10ad9f3c.
Diffstat (limited to 'src/mongo/db/session_catalog_test.cpp')
-rw-r--r--src/mongo/db/session_catalog_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/session_catalog_test.cpp b/src/mongo/db/session_catalog_test.cpp
index 641c0880ca2..68151010483 100644
--- a/src/mongo/db/session_catalog_test.cpp
+++ b/src/mongo/db/session_catalog_test.cpp
@@ -190,7 +190,7 @@ TEST_F(SessionCatalogTest, StashInNestedSessionIsANoop) {
repl::ReadConcernArgs::get(opCtx()) = readConcernArgs;
// Perform initial unstash, which sets up a WriteUnitOfWork.
- OperationContextSession::get(opCtx())->unstashTransactionResources(opCtx());
+ OperationContextSession::get(opCtx())->unstashTransactionResources(opCtx(), "find");
ASSERT_EQUALS(originalLocker, opCtx()->lockState());
ASSERT_EQUALS(originalRecoveryUnit, opCtx()->recoveryUnit());
ASSERT(opCtx()->getWriteUnitOfWork());
@@ -241,7 +241,7 @@ TEST_F(SessionCatalogTest, UnstashInNestedSessionIsANoop) {
DirectClientSetter inDirectClient(opCtx());
OperationContextSession innerScopedSession(opCtx(), true, boost::none, boost::none);
- OperationContextSession::get(opCtx())->unstashTransactionResources(opCtx());
+ OperationContextSession::get(opCtx())->unstashTransactionResources(opCtx(), "find");
// The unstash was a noop, so the OperationContext did not get a WriteUnitOfWork.
ASSERT_EQUALS(originalLocker, opCtx()->lockState());