[SERVER-39663] db.collection.dropIndex() should not accept multiple index names Created: 19/Feb/19  Updated: 29/Oct/23  Resolved: 06/Apr/19

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

Type: Bug Priority: Minor - P4
Reporter: Benety Goh Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-12607 Docs for SERVER-39663: db.collection.... Closed
Related
is related to SERVER-37727 Enhance dropIndexes to accept multipl... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2019-04-08
Participants:

 Description   

We extended the dropIndexes command in SERVER-37727 to accept an array of index names. As a result, the db.collection.dropIndex() shell helper, which is built on the dropIndexes command, now accepts multiple index names. It would be less confusing for users if we added some validation to this shell helper to reject '*' and arrays of index names.



 Comments   
Comment by Githook User [ 06/Apr/19 ]

Author:

{'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek', 'username': 'GWlodarek'}

Message: SERVER-39663 db.collection.dropIndex() should not accept multiple index names
Branch: master
https://github.com/mongodb/mongo/commit/ac49ef4c2dcbee1317c3c1f5bad102eef70ce16c

Comment by Githook User [ 06/Apr/19 ]

Author:

{'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek', 'username': 'GWlodarek'}

Message: SERVER-39663 change dropIndex("") to dropIndexes("") to drop multiple indexes
Branch: master
https://github.com/mongodb/mongo/commit/36edb90af0cfe2649de3f45e574b64dd7b0fcf37

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