Version 10.0.2
Connection close

Closing a WT_CONNECTION:: handle can be expensive, in part because of the cost of freeing memory (for example, the memory allocated for a large cache). If the process is exiting regardless, configuring WT_CONNECTION::close to leak memory on close can significantly speed up the close.

An example of configuring WT_CONNECTION::close to leak memory:

error_check(conn->close(conn, "leak_memory=true"));
WT_CONNECTION::close
int close(WT_CONNECTION *connection, const char *config)
Close a connection.