diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-06-17 16:44:57 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-06-18 16:35:40 -0400 |
commit | 6289db7f0a042a9d9fb2e5e1026189a16f6d68ee (patch) | |
tree | 39e4eb473cfdddd3d40b7b6bb7131deee85a5547 /src/mongo/client/remote_command_targeter.h | |
parent | d7a19f4e49a93de40295d39c00abec96fdffe987 (diff) | |
download | mongo-6289db7f0a042a9d9fb2e5e1026189a16f6d68ee.tar.gz |
SERVER-19016 Implement runUserManagement{Read,Write}Command in CatalogManagerReplicaSet
Diffstat (limited to 'src/mongo/client/remote_command_targeter.h')
-rw-r--r-- | src/mongo/client/remote_command_targeter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/remote_command_targeter.h b/src/mongo/client/remote_command_targeter.h index 6c559dbcf5e..88894f1bf6c 100644 --- a/src/mongo/client/remote_command_targeter.h +++ b/src/mongo/client/remote_command_targeter.h @@ -49,7 +49,9 @@ namespace mongo { * * 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 + * NotMaster if readPref is PrimaryOnly and there is no primary in the set + * FailedToSatisfyReadPreference if it cannot find a node to match the read preference + * and the readPref is anything other than PrimaryOnly */ virtual StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref) = 0; |