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

dropDatabase should be harder

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: