See repro steps.
This crashes because we attempt to construct an OldClientContext while in an active WriteUnitOfWork.
OldClientContext will attempt to create a database if it doesn't exist.
Creating a database on mmapv1 will attempt to allocate a new ns file, and then try to flush the journal manually.
Flushing the journal requires the flush lock, which invariants that we are not in a WriteUnitOfWork.
- related to
-
SERVER-23326 applyOps should use a single WriteUnitOfWork where possible
- Closed
-
SERVER-30830 applyOps should return NamespaceNotFound when applying a CRUD operation on a non-existent collection/database
- Closed
-
SERVER-63907 Remove code or fix comment referring to handling MMAP
- Closed