diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2020-02-05 18:56:33 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-14 12:12:24 +0000 |
commit | c25f0bc16a1f515f20972f30abf6bd569235a00f (patch) | |
tree | d96416a544638513890b1900ea7c05dedcd75b1b /src/mongo/db/s/split_chunk_test.cpp | |
parent | b6ef7212c4f1c263e9d997b606c9127601e023e3 (diff) | |
download | mongo-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.cpp | 2 |
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(); |