summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_source_manager.cpp
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-05-19 15:03:03 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-19 17:29:07 +0000
commitb55528c5954b9d055e5cc55e2e7e58048f149208 (patch)
treeeb81a912742e46ac27c93fc53fb88b6af68156db /src/mongo/db/s/migration_source_manager.cpp
parent9d546a80c97a15df15e7358f18cf41e814fbfa6c (diff)
downloadmongo-b55528c5954b9d055e5cc55e2e7e58048f149208.tar.gz
SERVER-48288 Remove 2nd CatalogCache used just for filtering
Diffstat (limited to 'src/mongo/db/s/migration_source_manager.cpp')
-rw-r--r--src/mongo/db/s/migration_source_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/migration_source_manager.cpp b/src/mongo/db/s/migration_source_manager.cpp
index 13c0546313c..a9ad196e69f 100644
--- a/src/mongo/db/s/migration_source_manager.cpp
+++ b/src/mongo/db/s/migration_source_manager.cpp
@@ -666,7 +666,7 @@ void MigrationSourceManager::_cleanup() {
// possible that the persisted metadata is rolled back after step down, but the write which
// cleared the 'inMigration' flag is not, a secondary node will report itself at an older
// shard version.
- getCatalogCacheLoaderForFiltering(_opCtx).waitForCollectionFlush(_opCtx, getNss());
+ CatalogCacheLoader::get(_opCtx).waitForCollectionFlush(_opCtx, getNss());
// Clear the 'minOpTime recovery' document so that the next time a node from this shard
// becomes a primary, it won't have to recover the config server optime.