diff options
author | Marcos José Grillo Ramírez <marcos.grillo@mongodb.com> | 2020-04-24 12:53:56 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-27 14:28:37 +0000 |
commit | 2ea63cd234669d3cfe09292f6f978f7bf768d0d6 (patch) | |
tree | 7ed8519b435d968323a878bceb3cab52685420a2 /src/mongo/s/catalog_cache_test_fixture.cpp | |
parent | 7fa85b78aab68e1658d1902d43077449e532b1f1 (diff) | |
download | mongo-2ea63cd234669d3cfe09292f6f978f7bf768d0d6.tar.gz |
SERVER-47477 Report failures on refresh and remove in sessions collection sharded
Diffstat (limited to 'src/mongo/s/catalog_cache_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/catalog_cache_test_fixture.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/catalog_cache_test_fixture.cpp b/src/mongo/s/catalog_cache_test_fixture.cpp index 702e84c7a3c..302df27fb68 100644 --- a/src/mongo/s/catalog_cache_test_fixture.cpp +++ b/src/mongo/s/catalog_cache_test_fixture.cpp @@ -211,7 +211,9 @@ CachedCollectionRoutingInfo CatalogCacheTestFixture::loadRoutingTableWithTwoChun auto future = scheduleRoutingInfoForcedRefresh(nss); // Mock the expected config server queries. - expectGetDatabase(nss); + if (!nss.isAdminDB() && !nss.isConfigDB()) { + expectGetDatabase(nss); + } expectGetCollection(nss, epoch, shardKeyPattern); expectGetCollection(nss, epoch, shardKeyPattern); expectFindSendBSONObjVector(kConfigHostAndPort, [&]() { |