Berkeley DB: DbEnv::get_lk_info
Полезная информация

DbEnv::get_lk_info


#include <db_cxx.h>

DbLockTab DbEnv::*get_lk_info() const;

Description

Get/set the return value from the DbLockTab::open method, used if locking is required for the file being opened (as is the case when multiple processes or threads are accessing the same file). If no value is set, no locking is done by the Berkeley DB access methods.

If both locking and transactions are being performed, the transaction ID will be used as the locker ID. If only locking is being performed, Db::open will acquire a locker ID from DbLockTab::id and will use it for all locks required for this instance of Db::open.

Class

DbEnv

See Also

DbEnv::appinit, DbEnv::appexit, DbEnv::version, DbEnv::get_lg_info, DbEnv::get_lk_info, DbEnv::get_mp_info, DbEnv::get_tx_info, dbenv_set_data_dir, DbEnv::set_errcall, DbEnv::set_errfile, DbEnv::set_error_model, DbEnv::set_error_stream, DbEnv::set_errpfx, DbEnv::set_lg_max, DbEnv::set_lk_conflicts, DbEnv::set_lk_detect, DbEnv::set_lk_modes, DbEnv::set_lorder, DbEnv::set_mp_mmapsize, DbEnv::set_mp_size, DbEnv::set_tx_max, DbEnv::set_tx_recover and DbEnv::set_verbose.