[SERVER-63578] Convert a unique index to a non-unique index via the collMod command Created: 11/Feb/22  Updated: 29/Oct/23  Resolved: 04/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-63582 Fail gracefully if a user tries conve... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-03-07
Participants:

 Description   

Support the option "unique: false", which indicates that the user would like to convert a unique index to a non-unique one. This will involve changing the index spec in the durable catalog.

We should only allow this conversion if the unique index is in the correct internal data format (SERVER-63577), which ensures that all keys are in the new format.

We would basically like to provide functionality opposite to what SERVER-61158 introduced.



 Comments   
Comment by Githook User [ 04/Mar/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-63578 Convert a unique index to a non-unique index via the collMod command
Branch: master
https://github.com/mongodb/mongo/commit/e2675683edd92cd4105df52eff3f0eb64055181c

Generated at Thu Feb 08 05:58:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.