[SERVER-47423] Take collection locks instead of databse MODE_X lock in cloneCollectionAsCapped Created: 08/Apr/20  Updated: 29/Oct/23  Resolved: 10/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc1, 4.7.0

Type: Improvement Priority: Minor - P4
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-04-20
Participants:

 Description   

collection_to_capped.cpp takes a database MODE_X lock here, but it can just take collection locks instead.



 Comments   
Comment by Githook User [ 10/Apr/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-47423 Take collection MODE_X locks instead of databse MODE_X lock in cloneCollectionAsCapped

(cherry picked from commit 4adcb62e1be77edfd448e3091d307a368181cc9e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f5c988bbbcc5251f2ce8726ef399092b037245fe

Comment by Githook User [ 10/Apr/20 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-47423 Take collection MODE_X locks instead of databse MODE_X lock in cloneCollectionAsCapped
Branch: master
https://github.com/mongodb/mongo/commit/4adcb62e1be77edfd448e3091d307a368181cc9e

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