SERVER-55316 ensured that all LDAP connections are reaped in a separate executor driven by another thread rather than inline. However, there is at least one occasion where we should reap the connection inline. This situation is when the LDAP manager's smoke test, performed during server startup before multithreading is enabled, fails and the connection is reaped. Not properly checking whether multithreading is enabled before reaping the connection results in a crash, so there should be an inline default in case the connection reap is occurring while the server is in a single-threaded state.
- is related to
SERVER-55316 Disconnect LDAP connections out of line