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

easy access to configdb

This commit is contained in:
Eliot Horowitz 2009-03-11 17:03:05 -04:00
parent 300485189d
commit a58e2ce7bd

View File

@ -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" );