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

dropDatabase should be harder

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      db.dropDatabase() is really dangerous
      it can be call on any database without any verification.
      it is based on the context of the selected database which can lead to mistakes.

      (example : use the command history to quickly)

      it should contain the name of the database to drop : db.dropDatabase("databaseToDrop") for example.

      Attachments

        Activity

          People

            Unassigned Unassigned
            julieng Julien Gaucher
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: