diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-11-06 12:13:25 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-11-11 10:16:34 -0500 |
commit | a707b9852bf6e03e7d6e6ef3ad464dbd28d690fa (patch) | |
tree | 8e85b0e4006ab2193a6e0b3245b57e3385ceb9b2 /src/mongo/client/remote_command_targeter_rs.h | |
parent | 67b68b5f094d88753ae2fe14f6d708c9e5b4bfbd (diff) | |
download | mongo-a707b9852bf6e03e7d6e6ef3ad464dbd28d690fa.tar.gz |
SERVER-21272 Make RemoteCommandTargeter use timeout for findHost
This change removes all back-off logic from ShardRegistry and
CatalogManagerReplicaSet and defers it all to the wait time capability of
the ReplicaSetMonitor (through RemoteCommandTargeter).
Diffstat (limited to 'src/mongo/client/remote_command_targeter_rs.h')
-rw-r--r-- | src/mongo/client/remote_command_targeter_rs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/client/remote_command_targeter_rs.h b/src/mongo/client/remote_command_targeter_rs.h index aca2124184e..28decd97232 100644 --- a/src/mongo/client/remote_command_targeter_rs.h +++ b/src/mongo/client/remote_command_targeter_rs.h @@ -52,7 +52,8 @@ public: ConnectionString connectionString() override; - StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref) override; + StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref, + Milliseconds maxWait) override; void markHostNotMaster(const HostAndPort& host) override; |