[SERVER-64471] collMod doesn't handle no-op unique conversion correctly Created: 14/Mar/22  Updated: 29/Oct/23  Resolved: 15/Mar/22

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

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-03-21
Participants:
Linked BF Score: 34

 Description   

The check on prepareUnique field should only happen when the operation is not a no-op. We should also add test coverage for this case.



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

Author:

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

Message: SERVER-64471 Skip checking prepareUnique on an already unique index during collMod unique conversion
Branch: master
https://github.com/mongodb/mongo/commit/4beaff69ac4c8a5f740f0a5c71cb23b7ab9adab7

Generated at Thu Feb 08 06:00:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.