support scale option to dbstats command SERVER-2174
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user