Berkeley DB: DbEnv.get_lk_info

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">


import com.sleepycat.db.*;

public DbLockTab get_lk_info();


Get/set the return value from the 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, will acquire a locker ID from and will use it for all locks required for this instance of



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_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, and DbEnv.set_verbose.