[SERVER-15828] collStats does not appear to take a lock Created: 28/Oct/14  Updated: 10/Dec/14  Resolved: 28/Oct/14

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

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Problem

collStats appears not to take a lock out (either C_S or DB_S). This is different to listCollections which takes a DB_S lock. Not clear if collStats should follow the same pattern

https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/list_collections.cpp#L70

            AutoGetDb autoDb(txn, dbname, MODE_S);



 Comments   
Comment by Daniel Pasette (Inactive) [ 28/Oct/14 ]

this call gets the read lock:
https://github.com/mongodb/mongo/blob/master/src/mongo/db/dbcommands.cpp#L884

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