diff options
author | gregs <greg@10gen.com> | 2011-09-28 17:23:22 -0400 |
---|---|---|
committer | gregs <greg@10gen.com> | 2011-09-30 11:41:17 -0400 |
commit | 0b2cd79560d425fd1b86c1db05e598bc400b13e8 (patch) | |
tree | e16ce05937b243bd9945613db7502e484ab7f926 /shell | |
parent | fec06cfe915a53e5e53cd2b8e114c99814fbe436 (diff) | |
download | mongo-0b2cd79560d425fd1b86c1db05e598bc400b13e8.tar.gz |
auto-reload chunk manager to check version not reset after third staleconfig SERVER-3889
Diffstat (limited to 'shell')
-rw-r--r-- | shell/mongo_vstudio.cpp | 4 | ||||
-rwxr-xr-x | shell/servers.js | 4 | ||||
-rw-r--r-- | shell/utils.js | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/shell/mongo_vstudio.cpp b/shell/mongo_vstudio.cpp index 5496ddb7612..208d734c75b 100644 --- a/shell/mongo_vstudio.cpp +++ b/shell/mongo_vstudio.cpp @@ -1005,8 +1005,8 @@ const StringData _jscode_raw_utils = "return {}\n" "}\n" "\n" -"testLog = function(x){\n" -"print( jsTestFile() + \" - \" + x )\n" +"jsTestLog = function(msg){\n" +"print( \"\\n\\n----\\n\" + msg + \"\\n----\\n\\n\" )\n" "}\n" "\n" "shellPrintHelper = function (x) {\n" diff --git a/shell/servers.js b/shell/servers.js index ad3b5eb425a..967d54f2797 100755 --- a/shell/servers.js +++ b/shell/servers.js @@ -235,7 +235,8 @@ ShardingTest = function( testName , numShards , verboseLevel , numMongos , other rs.awaitReplication(); var xxx = new Mongo( rs.getURL() ); xxx.name = rs.getURL(); - this._connections.push( xxx ); + this._connections.push( xxx ) + this["shard" + i] = xxx } this._configServers = [] @@ -260,6 +261,7 @@ ShardingTest = function( testName , numShards , verboseLevel , numMongos , other var conn = startMongodTest( 30000 + i , testName + i, 0, options ); this._alldbpaths.push( testName +i ) this._connections.push( conn ); + this["shard" + i] = conn } if ( otherParams.sync ){ diff --git a/shell/utils.js b/shell/utils.js index 8380607b316..7d7a23b6063 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -1000,8 +1000,8 @@ jsTestOptions = function(){ return {} } -testLog = function(x){ - print( jsTestFile() + " - " + x ) +jsTestLog = function(msg){ + print( "\n\n----\n" + msg + "\n----\n\n" ) } shellPrintHelper = function (x) { |