summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/balancer/scoped_migration_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/balancer/scoped_migration_request.cpp')
-rw-r--r--src/mongo/db/s/balancer/scoped_migration_request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/balancer/scoped_migration_request.cpp b/src/mongo/db/s/balancer/scoped_migration_request.cpp
index af737fd0640..c422551892b 100644
--- a/src/mongo/db/s/balancer/scoped_migration_request.cpp
+++ b/src/mongo/db/s/balancer/scoped_migration_request.cpp
@@ -106,7 +106,7 @@ StatusWith<ScopedMigrationRequest> ScopedMigrationRequest::writeMigration(
// for the request because this migration request will join the active one once
// scheduled.
auto statusWithMigrationQueryResult =
- grid.shardRegistry()->getConfigShard()->exhaustiveFindOnConfig(
+ grid.shardRegistry()->getConfigShard()->exhaustiveFind(
txn,
ReadPreferenceSetting{ReadPreference::PrimaryOnly},
repl::ReadConcernLevel::kLocalReadConcern,