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_mock.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_mock.h')
-rw-r--r-- | src/mongo/client/remote_command_targeter_mock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/remote_command_targeter_mock.h b/src/mongo/client/remote_command_targeter_mock.h index 5a9bb7532e7..7e398a9e7bf 100644 --- a/src/mongo/client/remote_command_targeter_mock.h +++ b/src/mongo/client/remote_command_targeter_mock.h @@ -33,7 +33,7 @@ namespace mongo { - class RemoteCommandTargeterMock : public RemoteCommandTargeter { + class RemoteCommandTargeterMock final : public RemoteCommandTargeter { public: RemoteCommandTargeterMock(); virtual ~RemoteCommandTargeterMock() = default; @@ -42,7 +42,7 @@ namespace mongo { * Returns the return value last set by setFindHostReturnValue. * Returns ErrorCodes::InternalError if setFindHostReturnValue was never called. */ - virtual StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref) override; + StatusWith<HostAndPort> findHost(const ReadPreferenceSetting& readPref) override; /** * Sets the return value for the next call to findHost. |