Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
-
None
Description
Change the function to something like this:
DBCollection.prototype.indexStats = function(name, opt) { |
var idx = name; |
var cmd = { indexStats: this.getName() }; |
// For backwards compat check if name is an object |
if (typeof(name) == 'object') { |
Object.extend(cmd, name);
|
idx = name["index"]; |
}
|
|
|
cmd["index"] = idx; |
if (typeof(opt) == 'object') // support arbitrary options here |
Object.extend(cmd, opt);
|
|
|
return this._db.runCommand( cmd ); |
}
|
Attachments
Issue Links
- is related to
-
SERVER-19504 Remove indexStats command artifacts
-
- Closed
-