June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int DBENV→remove(DB_ENV *, char *db_home, u_int32_t flags);
The DBENV→remove function destroys a Berkeley DB environment if it is not currently in use. The environment regions, including any backing files, are removed.Any log or database files and the environment directory are not removed.
The db_home argument to DBENV→remove is described in “Berkeley DB File Naming.”
If there are processes that have called DBENV→open without calling DBENV→close (that is, there are processes currently using the environment), DBENV→remove will fail without further action unless the DB_FORCE flag is set, in which case DBENV→remove will attempt to remove the environment, regardless of any processes still using it.
The ...