diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-23 08:59:46 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-23 08:59:46 -0500 |
commit | 6ecbbdebb7b39292d4be2b7c44211cfcee65ab7b (patch) | |
tree | fa1b4c26e548564d64dcba295ab5527e85fa05cc /shell | |
parent | e47b9a5452dfeae5d03cee09d56f9ff93edef285 (diff) | |
download | mongo-6ecbbdebb7b39292d4be2b7c44211cfcee65ab7b.tar.gz |
sync before going straight to mongod
Diffstat (limited to 'shell')
-rw-r--r-- | shell/servers.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/servers.js b/shell/servers.js index 41700b44394..ecc48125a67 100644 --- a/shell/servers.js +++ b/shell/servers.js @@ -249,6 +249,7 @@ ShardingTest.prototype.sync = function(){ } ShardingTest.prototype.onNumShards = function( collName , dbName ){ + this.sync(); // we should sync since we're going directly to mongod here dbName = dbName || "test"; var num=0; for ( var i=0; i<this._connections.length; i++ ) |