Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
Storage Execution
-
ALL
Description
First we take the DB lock in MODE_IX, then if the collection doesn't exist yet, we relock the DB in MODE_X in case we need to create the database as well for collection creation. However, we never relock the DB in MODE_IX after the collection is created. We end up holding the MODE_X for the duration of the createIndexes cmd in this scenario. Need to change it to relock in MODE_IX afterwards in both the runCreateIndexes function runCreateIndexesWithCoordinator function.
Attachments
Issue Links
- duplicates
-
SERVER-44405 Use MODE_IX lock for implicit collection creation with createIndexes
-
- Closed
-
- related to
-
SERVER-44877 Complete TODO listed in SERVER-40952
-
- Closed
-