-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Storage
-
None
-
Storage Execution
Today, multiple DDL commands can be specified in a single 'applyOps' command. We should investigate if there are any use cases to having this and if we can only have one DDL command run per 'applyOps'.
There would be confusion on which lock mode to take for the database if we were to remove the exclusive global lock here when there are multiple DDL commands to execute.
If it's possible to run one DDL command per 'applyOps' we can hold the appropriate lock mode throughout the entire operation for the database without the concern of having to switch lock modes for subsequent commands.
- is depended on by
-
SERVER-44033 Only take the global write lock for applyOps when there are preConditions, multiple DDL commands or nested applyOps
- Closed