summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKyle Banker <kylebanker@gmail.com>2010-07-30 10:09:47 -0400
committerKyle Banker <kylebanker@gmail.com>2010-07-30 10:09:47 -0400
commit0e12d1012f489e38153ab43b16e9441c082ea805 (patch)
treed5e3edb21a712fab9816cd02bd01d7ef567babd2 /shell
parentdb8bd901d8be3eaeabc3a25646c3deb56e523d6d (diff)
downloadmongo-0e12d1012f489e38153ab43b16e9441c082ea805.tar.gz
minor: test fix
Diffstat (limited to 'shell')
-rw-r--r--shell/mongo_vstudio.cpp2
-rw-r--r--shell/servers.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/mongo_vstudio.cpp b/shell/mongo_vstudio.cpp
index c50356e952d..b63cdf74a25 100644
--- a/shell/mongo_vstudio.cpp
+++ b/shell/mongo_vstudio.cpp
@@ -990,7 +990,7 @@ const char * jsconcatcode =
"return this._name;}\n"
"DB.prototype.toString = function(){\n"
"return this._name;}\n"
- "DB.prototype.isMaster = function(){ return db.runCommand(\"isMaster\");}\n"
+ "DB.prototype.isMaster = function(){ return this.runCommand(\"isMaster\");}\n"
"DB.prototype.currentOp = function(){\n"
"return db.$cmd.sys.inprog.findOne();}\n"
"DB.prototype.currentOP = DB.prototype.currentOp;\n"
diff --git a/shell/servers.js b/shell/servers.js
index 2f8faa1c744..e6e03551bf6 100644
--- a/shell/servers.js
+++ b/shell/servers.js
@@ -884,7 +884,7 @@ ReplSetTest = function( opts ){
this.initBridges();
}
else {
- this.ports = allocatePorts( this.numNodes , startPort );
+ this.ports = allocatePorts( this.numNodes , this.startPort );
}
this.nodes = [];