From 652f407b4b194bd98c1f59fb93f3a1b014ff9bb6 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Mon, 15 Aug 2011 19:11:15 -0400 Subject: Fix mongos skipping checking the health of the first node in the _nodes array in the replica set monitor. SERVER-3605 --- client/dbclient_rs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1