-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: JavaScript, Shell
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 ); }
- is related to
-
SERVER-19504 Remove indexStats command artifacts
- Closed