summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction/transaction_api_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/transaction/transaction_api_test.cpp')
-rw-r--r--src/mongo/db/transaction/transaction_api_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/transaction/transaction_api_test.cpp b/src/mongo/db/transaction/transaction_api_test.cpp
index 1669995c946..7a2d5fb004b 100644
--- a/src/mongo/db/transaction/transaction_api_test.cpp
+++ b/src/mongo/db/transaction/transaction_api_test.cpp
@@ -1935,7 +1935,7 @@ TEST_F(TxnAPITest, MaxTimeMSIsSetIfOperationContextHasDeadlineAndIgnoresDefaultR
TEST_F(TxnAPITest, CannotBeUsedWithinShardedOperationsIfClientDoesNotSupportIt) {
OperationShardingState::setShardRole(
- opCtx(), NamespaceString("foo.bar"), ChunkVersion(), boost::none);
+ opCtx(), NamespaceString("foo.bar"), ShardVersion(), boost::none);
ASSERT_THROWS_CODE(
resetTxnWithRetries(), DBException, ErrorCodes::duplicateCodeForTest(6638800));
@@ -1943,7 +1943,7 @@ TEST_F(TxnAPITest, CannotBeUsedWithinShardedOperationsIfClientDoesNotSupportIt)
TEST_F(TxnAPITest, CanBeUsedWithinShardedOperationsIfClientSupportsIt) {
OperationShardingState::setShardRole(
- opCtx(), NamespaceString("foo.bar"), ChunkVersion(), boost::none);
+ opCtx(), NamespaceString("foo.bar"), ShardVersion(), boost::none);
// Should not throw.
resetTxnWithRetriesWithClient(std::make_unique<MockClusterOperationTransactionClient>());