summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2011-08-15 19:11:15 -0400
committerEliot Horowitz <eliot@10gen.com>2011-09-15 14:41:01 -0400
commit652f407b4b194bd98c1f59fb93f3a1b014ff9bb6 (patch)
tree06fe06c300efd5f84fa0eae5a84d35da156fb434
parent618a111c9001b83722d4505319d3bf7fb3f1ad17 (diff)
downloadmongo-652f407b4b194bd98c1f59fb93f3a1b014ff9bb6.tar.gz
Fix mongos skipping checking the health of the first node in the _nodes array
in the replica set monitor. SERVER-3605
-rw-r--r--client/dbclient_rs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dbclient_rs.cpp b/client/dbclient_rs.cpp
index 37f62259650..b92ac89277b 100644
--- a/client/dbclient_rs.cpp
+++ b/client/dbclient_rs.cpp
@@ -266,7 +266,7 @@ namespace mongo {
string host = member["name"].String();
int m = -1;
- if ((m = _find(host)) <= 0) {
+ if ((m = _find(host)) < 0) {
continue;
}