diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-07-27 15:18:04 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-07-28 13:24:03 -0400 |
commit | 789a8e2669c38ad5ebcbd07bff98d14d7354e421 (patch) | |
tree | 2e612b18b44b7f478dd4e0914b940ed476eb4f85 /src/mongo/client/remote_command_targeter_rs.cpp | |
parent | a8a7d8c892078046870526760adf98b43a87bbda (diff) | |
download | mongo-789a8e2669c38ad5ebcbd07bff98d14d7354e421.tar.gz |
SERVER-19403 Notify targeter of NotMaster errors
Diffstat (limited to 'src/mongo/client/remote_command_targeter_rs.cpp')
-rw-r--r-- | src/mongo/client/remote_command_targeter_rs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/client/remote_command_targeter_rs.cpp b/src/mongo/client/remote_command_targeter_rs.cpp index 2870215dfc2..cbaaee553ef 100644 --- a/src/mongo/client/remote_command_targeter_rs.cpp +++ b/src/mongo/client/remote_command_targeter_rs.cpp @@ -78,4 +78,10 @@ StatusWith<HostAndPort> RemoteCommandTargeterRS::findHost(const ReadPreferenceSe return hostAndPort; } +void RemoteCommandTargeterRS::markHostNotMaster(const HostAndPort& host) { + invariant(_rsMonitor); + + _rsMonitor->failedHost(host); +} + } // namespace mongo |