diff options
Diffstat (limited to 'src/mongo/s/client/shard_remote.cpp')
-rw-r--r-- | src/mongo/s/client/shard_remote.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/s/client/shard_remote.cpp b/src/mongo/s/client/shard_remote.cpp index 3dbae46be66..200f3fc30ad 100644 --- a/src/mongo/s/client/shard_remote.cpp +++ b/src/mongo/s/client/shard_remote.cpp @@ -176,8 +176,7 @@ Shard::HostWithResponse ShardRemote::_runCommand(OperationContext* txn, if (getId() == "config") { readPrefWithMinOpTime.minOpTime = grid.configOpTime(); } - const auto host = _targeter->findHost(readPrefWithMinOpTime, - RemoteCommandTargeter::selectFindHostMaxWaitTime(txn)); + const auto host = _targeter->findHost(txn, readPrefWithMinOpTime); if (!host.isOK()) { return Shard::HostWithResponse(boost::none, host.getStatus()); } @@ -244,8 +243,7 @@ StatusWith<Shard::QueryResponse> ShardRemote::_exhaustiveFindOnConfig( ReadPreferenceSetting readPrefWithMinOpTime(readPref); readPrefWithMinOpTime.minOpTime = grid.configOpTime(); - const auto host = _targeter->findHost(readPrefWithMinOpTime, - RemoteCommandTargeter::selectFindHostMaxWaitTime(txn)); + const auto host = _targeter->findHost(txn, readPrefWithMinOpTime); if (!host.isOK()) { return host.getStatus(); } |