summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/split_chunk_test.cpp
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-02-05 18:56:33 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-14 12:12:24 +0000
commitc25f0bc16a1f515f20972f30abf6bd569235a00f (patch)
treed96416a544638513890b1900ea7c05dedcd75b1b /src/mongo/db/s/split_chunk_test.cpp
parentb6ef7212c4f1c263e9d997b606c9127601e023e3 (diff)
downloadmongo-c25f0bc16a1f515f20972f30abf6bd569235a00f.tar.gz
SERVER-44771 Introduce 2nd CatalogCache for filtering only
Only on ShardServer (not ReadOnly) use a second catalog cache for filtering only in order to allow operations in transactions to safely consult the CatalogCache.
Diffstat (limited to 'src/mongo/db/s/split_chunk_test.cpp')
-rw-r--r--src/mongo/db/s/split_chunk_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/split_chunk_test.cpp b/src/mongo/db/s/split_chunk_test.cpp
index 563692cac50..b18275f72a9 100644
--- a/src/mongo/db/s/split_chunk_test.cpp
+++ b/src/mongo/db/s/split_chunk_test.cpp
@@ -69,7 +69,7 @@ public:
ShardServerTestFixture::setUp();
ShardingState::get(operationContext())->setInitialized(_shardId, OID::gen());
- CatalogCacheLoader::get(getServiceContext()).initializeReplicaSetRole(true);
+ getCatalogCacheLoaderForFiltering(getServiceContext()).initializeReplicaSetRole(true);
// Instantiate names.
_epoch = OID::gen();