summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authordwight <dwight@dwights-MacBook-Pro.local>2010-07-29 17:44:08 -0400
committerdwight <dwight@dwights-MacBook-Pro.local>2010-07-29 17:44:08 -0400
commit0cc0b603168a1d883ff4e766c72417ecfe664480 (patch)
treede69b6d4123350eb0ade3143198bce255af94118 /shell
parentf13fb3f96e25fb9de85dcdfbea6f283af1bce413 (diff)
downloadmongo-0cc0b603168a1d883ff4e766c72417ecfe664480.tar.gz
shell fix ismaster helper
Diffstat (limited to 'shell')
-rw-r--r--shell/db.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/db.js b/shell/db.js
index 6fda7f73be9..3a82ecb0798 100644
--- a/shell/db.js
+++ b/shell/db.js
@@ -532,10 +532,10 @@ DB.prototype.tojson = function(){
}
DB.prototype.toString = function(){
- return this._name;
-}
-
-DB.prototype.isMaster = function(){ return db.runCommand("isMaster");}
+ return this._name;
+}
+
+DB.prototype.isMaster = function(){ return this.runCommand("isMaster");}
DB.prototype.currentOp = function(){
return db.$cmd.sys.inprog.findOne();