summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/op_observer_sharding_test.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2022-02-28 20:48:31 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-11 14:58:38 +0000
commit3de01a4acc71ab5241826fdbcb642d4ae000753f (patch)
tree9f994ab0a4affbd44c28fdf615edfc5ddc174ead /src/mongo/db/s/op_observer_sharding_test.cpp
parent8ff255e3b85a0f4c74c2fa3842e292076926c6ff (diff)
downloadmongo-3de01a4acc71ab5241826fdbcb642d4ae000753f.tar.gz
SERVER-64057 Comment the shard/databaseVersion arguments for the shard role
Diffstat (limited to 'src/mongo/db/s/op_observer_sharding_test.cpp')
-rw-r--r--src/mongo/db/s/op_observer_sharding_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/op_observer_sharding_test.cpp b/src/mongo/db/s/op_observer_sharding_test.cpp
index 8ea4dd63904..2620a746751 100644
--- a/src/mongo/db/s/op_observer_sharding_test.cpp
+++ b/src/mongo/db/s/op_observer_sharding_test.cpp
@@ -44,11 +44,12 @@ const NamespaceString kTestNss("TestDB", "TestColl");
void setCollectionFilteringMetadata(OperationContext* opCtx, CollectionMetadata metadata) {
AutoGetCollection autoColl(opCtx, kTestNss, MODE_X);
- const auto version = metadata.getShardVersion();
+ const auto shardVersion = metadata.getShardVersion();
CollectionShardingRuntime::get(opCtx, kTestNss)
->setFilteringMetadata(opCtx, std::move(metadata));
- OperationShardingState::setShardRole(opCtx, kTestNss, version, boost::none);
+ OperationShardingState::setShardRole(
+ opCtx, kTestNss, shardVersion, boost::none /* databaseVersion */);
}
class DocumentKeyStateTest : public ShardServerTestFixture {