diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/client/remote_command_targeter.h | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/client/remote_command_targeter.h')
-rw-r--r-- | src/mongo/client/remote_command_targeter.h | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/src/mongo/client/remote_command_targeter.h b/src/mongo/client/remote_command_targeter.h index 88894f1bf6c..60c639be2cb 100644 --- a/src/mongo/client/remote_command_targeter.h +++ b/src/mongo/client/remote_command_targeter.h @@ -32,31 +32,33 @@ namespace mongo { - struct ReadPreferenceSetting; - struct HostAndPort; - template<typename T> class StatusWith; +struct ReadPreferenceSetting; +struct HostAndPort; +template <typename T> +class StatusWith; + +/** + * Interface encapsulating the targeting logic for a given replica set or a standalone host. + */ +class RemoteCommandTargeter { + MONGO_DISALLOW_COPYING(RemoteCommandTargeter); + +public: + virtual ~RemoteCommandTargeter() = default; /** - * Interface encapsulating the targeting logic for a given replica set or a standalone host. + * 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 or any + * ErrorCode. Known error codes are: + * 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 */ - class RemoteCommandTargeter { - MONGO_DISALLOW_COPYING(RemoteCommandTargeter); - public: - virtual ~RemoteCommandTargeter() = default; - - /** - * 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 or any - * ErrorCode. Known error codes are: - * 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; - - protected: - RemoteCommandTargeter() = default; - }; - -} // namespace mongo + virtual StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref) = 0; + +protected: + RemoteCommandTargeter() = default; +}; + +} // namespace mongo |