diff options
author | Spencer T Brody <spencer@10gen.com> | 2011-08-15 19:11:15 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-09-15 14:41:01 -0400 |
commit | 652f407b4b194bd98c1f59fb93f3a1b014ff9bb6 (patch) | |
tree | 06fe06c300efd5f84fa0eae5a84d35da156fb434 | |
parent | 618a111c9001b83722d4505319d3bf7fb3f1ad17 (diff) | |
download | mongo-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.cpp | 2 |
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; } |