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

dropIndexes() in the shell does not check for arguments

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.0
    • Affects Version/s: 2.4.1
    • Component/s: Shell
    • Labels:
      None

      If someone wants to drop a single index and mistakenly runs dropIndexes(<index>) rather than dropIndex(<index>), they will drop all non-_id indexes.

      I think dropIndexes() should throw an exception if an argument is passed, like dropDatabase() does.

            Assignee:
            steve.briskin Steve Briskin (Inactive)
            Reporter:
            steve.briskin Steve Briskin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: