summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_targeter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/remote_command_targeter.h')
-rw-r--r--src/mongo/client/remote_command_targeter.h6
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;