[SERVER-51320] Investigate removing <dbname>.system.views CollectionLocks from the ViewCatalog functions Created: 02/Oct/20  Updated: 29/Oct/23  Resolved: 13/Oct/20

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

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

Issue Links:
Depends
is depended on by SERVER-51326 Add ViewCatalog to catalog_raii_test.... Closed
is depended on by SERVER-51359 Add ViewCatalog to catalog_raii_test.... Closed
Related
related to SERVER-40992 ViewCatalog should grab mutex after l... Closed
related to SERVER-50678 Implement lock-free version of AutoGe... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-10-19
Participants:

 Description   

CollectionLock invariants that an appropriate DBLock is held. Lock-free reads do not take that DBLock. Also, lock-free reads do not want to take any collection or database level locks, including <db>.system.views collection locks. We need to remove them, or find another solution if needs be. Looks like SERVER-40992 originally added the view collection locks.



 Comments   
Comment by Githook User [ 13/Oct/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-51320 Remove CollectionLock to system.views from functions in ViewCatalog.

They are not needed after the work in SERVER-41041.
Branch: master
https://github.com/mongodb/mongo/commit/ded7b44e03b6aea749c764d0e4cc2556785b4eb4

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