From a58e2ce7bd475a3cc86c8955c6600fca716a94dd Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 11 Mar 2009 17:03:05 -0400 Subject: [PATCH] easy access to configdb --- shell/servers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/servers.js b/shell/servers.js index aa6b02763c7..d1aa8033f7f 100644 --- a/shell/servers.js +++ b/shell/servers.js @@ -103,7 +103,8 @@ ShardingTest = function( testName , numServers , verboseLevel ){ this._serverNames.push( conn.name ); } - this.s = startMongos( { port : 39999 , v : verboseLevel || 0 , configdb : "localhost:30000" } ); + this._configDB = "localhost:30000"; + this.s = startMongos( { port : 39999 , v : verboseLevel || 0 , configdb : this._configDB } ); var admin = this.admin = this.s.getDB( "admin" ); this.config = this.s.getDB( "config" );