-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Storage Execution
The shutdown path intentionally leaks a MODE_X global lock to disallow operations which require locks until exit() is called. Post SERVER-69461 this logic got more complex, as we now have to keep the opCtx and client alive to ensure the lock is held.
If taking locks requires an opCtx, maybe we can simplify by making sure there are no active clients, instead of relying on the locking mechanism.