-I*Berkeley DB: DbEnv::appexit[P

DbEnv::appexit





#include <db_cxx.h>

DbEnv::appexit





Description



PThe DbEnv::appexit method closes the initialized Berkeley DB subsystems, freeing>any allocated resources and closing any underlying subsystems.

=In multi-threaded applications, only a single thread may callDbEnv::appexit.

The DbEnv::appexit>method either returns errno or throws an exception that:encapsulates an errno on failure, and 0 on success.



Errors

UIf a fatal error occurs in Berkeley DB, the DbEnv::appexit method may fail and eitherIreturn DB_RUNRECOVERY or throw an exception encapsulating DB_RUNRECOVERY,Gat which point all subsequent database calls will also fail in the sameFway. Methods marked as returning errno will, by default, throwHan exception that encapsulates the error information. The default error\behavior can be changed, see DbException.

The DbEnv::appexit&method may fail and throw an exceptionKfor any of the errors specified for the following Berkeley DB and C library functions:free(3),BDbLockTab::close,:DbLog::close,>DbMpool::close, memset(3), strlen(3),and@DbTxnMgr::close.



Class

2DbEnv



See Also

>DbEnv::appinit,DbEnv::appexit,>DbEnv::version,dbenv_get_data_dir,dbenv_get_errcall,dbenv_get_errfiledbenv_get_error_model,dbenv_get_error_modeldbenv_get_error_stream,dbenv_get_errpfx,dbenv_get_flags,dbenv_get_home,FDbEnv::get_lg_info,dbenv_get_lg_max,dbenv_get_lk_conflicts,dbenv_get_lk_detect,FDbEnv::get_lk_info,dbenv_get_lk_modes,dbenv_get_log_dir,dbenv_get_lorder,FDbEnv::get_mp_info,dbenv_get_mp_mmapsize,dbenv_get_mp_size,dbenv_get_tmp_dir,FDbEnv::get_tx_info,dbenv_get_tx_max,dbenv_get_tx_recoveranddbenv_get_verbose.
ÿÿ