0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

less chatty waiting for rsclient

This commit is contained in:
gregs 2011-07-28 12:56:31 -04:00
parent dad6351cfb
commit d1968d0838

View File

@ -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