[SERVER-31326] dropDatabase should be harder Created: 29/Sep/17  Updated: 29/Sep/17  Resolved: 29/Sep/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Julien Gaucher Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-22551 Make db.dropDatabase() shell helper t... Closed
Participants:
Case:

 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.



 Comments   
Comment by Charles Merrill [ 29/Sep/17 ]

Closed as duplicate.

Generated at Thu Feb 08 04:26:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.