diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-28 16:41:10 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-06-09 22:36:29 -0400 |
commit | 1106b8f8f203ec633d231152c2a077dce45e05f0 (patch) | |
tree | 8f3829187c32274276047ce6b24c8e7b1a57f98f /src/mongo/client/remote_command_targeter.h | |
parent | 5902eb0903eb04a546c21fe8bbc1d9364e8fafa3 (diff) | |
download | mongo-1106b8f8f203ec633d231152c2a077dce45e05f0.tar.gz |
SERVER-18438/SERVER-18435 Add RemoteCommandTargeter and runner to grid
* Implement a RemoteCommandTargeterFactory to dispense targeters based on
the connection string.
* Implement replica set monitor-based remote command targeter factory.
* Hook these with the global grid object.
* Switch the Shard::runCommand call to build on those.
Diffstat (limited to 'src/mongo/client/remote_command_targeter.h')
-rw-r--r-- | src/mongo/client/remote_command_targeter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/remote_command_targeter.h b/src/mongo/client/remote_command_targeter.h index c30b3c989e4..6c559dbcf5e 100644 --- a/src/mongo/client/remote_command_targeter.h +++ b/src/mongo/client/remote_command_targeter.h @@ -36,7 +36,6 @@ namespace mongo { struct HostAndPort; template<typename T> class StatusWith; - /** * Interface encapsulating the targeting logic for a given replica set or a standalone host. */ @@ -48,8 +47,9 @@ namespace mongo { /** * Obtains a host, which matches the read preferences specified by readPref. * - * Returns OK and a host and port to use for the specified read preference. Otherwise may - * return any ErrorCode. + * Returns OK and a host and port to use for the specified read preference or any + * ErrorCode. Known error codes are: + * HostNotFound if no host matches the specified read preference critera */ virtual StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref) = 0; |