June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> DbEnv::close(u_int32_t flags);
The DbEnv::close method closes the Berkeley DB environment, freeing any allocated resources and closing any underlying subsystems.
Calling DbEnv::close does not imply closing any databases that were opened in the environment, and all databases opened in the environment should be closed before the environment is closed.
The flags parameter is currently unused, and must be set to 0.
Where the environment was initialized with the DB_INIT_LOCK flag, calling DbEnv::close does not release any locks still held by the closing process, providing functionality for long-lived locks. Processes that wish to have all their locks released can do so by issuing the appropriate DbEnv::lock_vec ...