WT-3097, we only use WT_CONN_SERVER_RUN in two places. It would be better to replace the use in session_api.c with a check of WT_CONN_CLOSING and to introduce an LSM-specific run flag that controls shutdown of LSM threads.
Using module-specific run flags gives us the flexibility to shut down and restart individual modules plus control order of thread shutdown during connection close.
- is related to
WT-1698 Reconfiguring eviction opens a race with WT_CONNECTION::close
- related to
WT-3245 Avoid hangs on shutdown when a utility thread encounters an error
- links to