diff options
author | dwight <dwight@dwights-MacBook-Pro.local> | 2010-07-29 17:44:08 -0400 |
---|---|---|
committer | dwight <dwight@dwights-MacBook-Pro.local> | 2010-07-29 17:44:08 -0400 |
commit | 0cc0b603168a1d883ff4e766c72417ecfe664480 (patch) | |
tree | de69b6d4123350eb0ade3143198bce255af94118 /shell | |
parent | f13fb3f96e25fb9de85dcdfbea6f283af1bce413 (diff) | |
download | mongo-0cc0b603168a1d883ff4e766c72417ecfe664480.tar.gz |
shell fix ismaster helper
Diffstat (limited to 'shell')
-rw-r--r-- | shell/db.js | 8 |
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(); |