Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9834

Change helper signature for indexStats commands

      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 );
      }

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: