4I/Berkeley DB: DbEnv.set_lk_detect[P

DbEnv.set_lk_detect





import com.sleepycat.db.*;

)public void set_lk_detect(int lk_detect);





Description



BSet if the deadlock detector is to be run whenever a lock conflictEoccurs, and specifies which transaction should be aborted in the caseof a deadlock.6The specified value must be one of the following list:

z

DB_LOCK_DEFAULT
Use the default policy as specified by db_deadlock.6

DB_LOCK_OLDEST
Abort the oldest transaction.M

DB_LOCK_RANDOM
Abort a random transaction involved in the deadlock.:

DB_LOCK_YOUNGEST
Abort the youngest transaction.




Class

3
DbEnv



See Also

>DbEnv.appinit,>DbEnv.appexit,>DbEnv.version,FDbEnv.get_lg_info,FDbEnv.get_lk_info,FDbEnv.get_mp_info,FDbEnv.get_tx_info,dbenv_set_data_dir,FDbEnv.set_errcall,PDbEnv.set_error_stream,DDbEnv.set_errpfx,DDbEnv.set_lg_max,PDbEnv.set_lk_conflicts,DbEnv.set_lk_detect,HDbEnv.set_lk_modes,DDbEnv.set_lorder,NDbEnv.set_mp_mmapsize,FDbEnv.set_mp_size,DDbEnv.set_tx_max,andFDbEnv.set_verbose.
ÿÿ