From d1968d0838c96eb784bbd7f69e085a5cd7843a47 Mon Sep 17 00:00:00 2001 From: gregs Date: Thu, 28 Jul 2011 12:56:31 -0400 Subject: [PATCH] less chatty waiting for rsclient --- shell/servers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/servers.js b/shell/servers.js index 0dc789e67da..3c213fd6465 100755 --- a/shell/servers.js +++ b/shell/servers.js @@ -1286,9 +1286,11 @@ ReplSetTest.awaitRSClientHosts = function( conn, host, hostOk, rs ) { print( "Awaiting " + host + " to be " + ( hostOk ? "ok" : " not ok " ) + " for " + conn + " (rs: " + rs + ")" ) + var tests = 0 assert.soon( function() { var rsClientHosts = conn.getDB( "admin" ).runCommand( "connPoolStats" )[ "replicaSets" ] - printjson( rsClientHosts ) + if( tests % 10 == 0 ) printjson( rsClientHosts ) + tests++ for ( rsName in rsClientHosts ){ if( rs && rs != rsName ) continue