diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2021-02-24 08:53:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-15 12:11:20 +0000 |
commit | d22d0058c4f02c7bcd7337af8b1058cac8e26e45 (patch) | |
tree | d0a338f144a375b536c0523591885d7bae4d6608 /src/mongo/s/query | |
parent | 0914e8c70f51c10f84cfb0568975e06153901e04 (diff) | |
download | mongo-d22d0058c4f02c7bcd7337af8b1058cac8e26e45.tar.gz |
SERVER-54874: Ensure reading consistent config.collections and config.chunks when refreshing the CatalogCache
(cherry picked from commit 538cb2ff982aab2a60c4f3ab53eb1ba6d1acfeb9)
Diffstat (limited to 'src/mongo/s/query')
-rw-r--r-- | src/mongo/s/query/sharded_agg_test_fixture.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/s/query/sharded_agg_test_fixture.h b/src/mongo/s/query/sharded_agg_test_fixture.h index 621a7e368a9..8fc5a618051 100644 --- a/src/mongo/s/query/sharded_agg_test_fixture.h +++ b/src/mongo/s/query/sharded_agg_test_fixture.h @@ -97,14 +97,7 @@ public: // Mock the expected config server queries. expectGetDatabase(nss); - expectGetCollection(nss, epoch, UUID::gen(), shardKey); - expectFindSendBSONObjVector(kConfigHostAndPort, [&]() { - std::vector<BSONObj> response; - for (auto&& chunk : chunkDistribution) { - response.push_back(chunk.toConfigBSON()); - } - return response; - }()); + expectCollectionAndChunksAggregation(nss, epoch, UUID::gen(), shardKey, chunkDistribution); const auto cm = future.default_timed_get(); ASSERT(cm->isSharded()); |