summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-14 13:03:02 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-14 13:03:02 -0400
commitbc193c4f5979d967c3e02cc51af2dd5216599143 (patch)
tree37004f1bcbc7662dcdc7eb6e04183b2f3adbce96
parent115e9e42e1d78813fb65834769e58fcfbf7e9732 (diff)
downloadmongo-bc193c4f5979d967c3e02cc51af2dd5216599143.tar.gz
noprealloc for sharding tests for speed MINOR
-rw-r--r--shell/servers.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/servers.js b/shell/servers.js
index ad03a5c8549..9aed172d373 100644
--- a/shell/servers.js
+++ b/shell/servers.js
@@ -39,7 +39,8 @@ createMongoArgs = function( binaryName , args ){
}
else {
fullArgs.push( "--" + k );
- fullArgs.push( "" + o[k] );
+ if ( o[k] != "" )
+ fullArgs.push( "" + o[k] );
}
}
}
@@ -111,7 +112,7 @@ ShardingTest = function( testName , numServers , verboseLevel , numMongos ){
this._serverNames = [];
for ( var i=0; i<numServers; i++){
- var conn = startMongod( { port : 30000 + i , dbpath : "/data/db/" + testName + i } );
+ var conn = startMongod( { port : 30000 + i , dbpath : "/data/db/" + testName + i , noprealloc : "" } );
conn.name = "localhost:" + ( 30000 + i );
this._connections.push( conn );