support scale option to dbstats command SERVER-2174

This commit is contained in:
Mathias Stearn
2011-04-04 18:31:23 -04:00
parent af792b8010
commit fa7fbbb1f6
3 changed files with 22 additions and 10 deletions

View File

@@ -1516,8 +1516,8 @@ const StringData _jscode_raw_db =
"return this._name;\n"
"}\n"
"\n"
"DB.prototype.stats = function(){\n"
"return this.runCommand( { dbstats : 1 } );\n"
"DB.prototype.stats = function(scale){\n"
"return this.runCommand( { dbstats : 1 , scale : scale } );\n"
"}\n"
"\n"
"DB.prototype.getCollection = function( name ){\n"