diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-02-28 20:48:31 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-11 14:58:38 +0000 |
commit | 3de01a4acc71ab5241826fdbcb642d4ae000753f (patch) | |
tree | 9f994ab0a4affbd44c28fdf615edfc5ddc174ead /src/mongo/db/s/op_observer_sharding_test.cpp | |
parent | 8ff255e3b85a0f4c74c2fa3842e292076926c6ff (diff) | |
download | mongo-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.cpp | 5 |
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 { |