Function lmdb_master_sys::mdb_env_close
source · pub unsafe extern "C" fn mdb_env_close(env: *mut MDB_env)
Expand description
Close the environment and release the memory map.
Only a single thread may call this function. All transactions, databases, and cursors must already be closed before calling this function. Attempts to use any such handles after calling this function will cause a SIGSEGV. The environment handle will be freed and must not be used again after this call.
§Arguments
env
(direction in) - An environment handle returned by #mdb_env_create()