-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.7.7
-
Component/s: Concurrency
-
Labels:
-
ALL
Problem:
See https://github.com/mongodb/mongo/blob/master/src/mongo/db/dbcommands.cpp#L351
// Needs to be locked exclusively, because creates the system.profile collection // in the local database. // Lock::DBLock dbXLock(txn->lockState(), dbname, MODE_X);
Alternative:
Could this be scoped to a DB_X lock?