[SERVER-41426] StorageInterface's dropCollection should only take Database IX lock Created: 31/May/19  Updated: 29/Oct/23  Resolved: 06/Jun/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.2.0-rc3, 4.3.1

Type: Task Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-39520 Only use collection MODE_X locks for ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Execution Team 2019-06-03, Execution Team 2019-06-17
Participants:
Linked BF Score: 4

 Description   

StorageInterface's dropCollection, mainly used by the old two-phase drop, still takes DB X lock. However, after the collection catalog changes, it should only need to take a Database IX lock and a collection X lock.



 Comments   
Comment by Githook User [ 02/Jul/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-41426 StorageInterface's dropCollection should only take Database IX lock

(cherry picked from commit 441348f68c71d70723b2abd63488d7d3906f3d8b)
Branch: v4.2
https://github.com/mongodb/mongo/commit/cd6377837e3d5d8432f4dda89e85be0b5a49b1ab

Comment by Githook User [ 06/Jun/19 ]

Author:

{'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com', 'username': 'xy24'}

Message: SERVER-41426 StorageInterface's dropCollection should only take Database IX lock
Branch: master
https://github.com/mongodb/mongo/commit/441348f68c71d70723b2abd63488d7d3906f3d8b

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