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

dropIndexes() in the shell does not check for arguments

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.0
    • 2.4.1
    • Shell
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: