summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction/transaction_api_test.cpp
diff options
context:
space:
mode:
authorAllison Easton <allison.easton@mongodb.com>2022-08-17 10:00:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-17 10:53:36 +0000
commita510654b3da2cb828aeff7cdccf0e2d657132b59 (patch)
tree712c02ffcfca63c9fa99318d907768f6685d9574 /src/mongo/db/transaction/transaction_api_test.cpp
parent261b4a8e28cc7daf57135bb0fb31148388f930ff (diff)
downloadmongo-a510654b3da2cb828aeff7cdccf0e2d657132b59.tar.gz
SERVER-62793 Add index component to shard version
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>());