summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_targeter_rs.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-07-27 15:18:04 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-07-28 13:24:03 -0400
commit789a8e2669c38ad5ebcbd07bff98d14d7354e421 (patch)
tree2e612b18b44b7f478dd4e0914b940ed476eb4f85 /src/mongo/client/remote_command_targeter_rs.cpp
parenta8a7d8c892078046870526760adf98b43a87bbda (diff)
downloadmongo-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.cpp6
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