summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-11-23 08:59:46 -0500
committerEliot Horowitz <eliot@10gen.com>2009-11-23 08:59:46 -0500
commit6ecbbdebb7b39292d4be2b7c44211cfcee65ab7b (patch)
treefa1b4c26e548564d64dcba295ab5527e85fa05cc /shell
parente47b9a5452dfeae5d03cee09d56f9ff93edef285 (diff)
downloadmongo-6ecbbdebb7b39292d4be2b7c44211cfcee65ab7b.tar.gz
sync before going straight to mongod
Diffstat (limited to 'shell')
-rw-r--r--shell/servers.js1
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++ )