DbEnv::get_lk_detect()

#include <db_cxx.h>

int
DbEnv::get_lk_detect(u_int32_t *lk_detectp);

The DbEnv::get_lk_detect() method returns the deadlock detector configuration. You can manage this using the DbEnv::set_lk_detect() method.

The DbEnv::get_lk_detect() method may be called at any time during the life of the application.

The DbEnv::get_lk_detect() method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters

lk_detectp

The DbEnv::get_lk_detect() method returns the deadlock detector configuration in lk_detectp.

Errors

The DbEnv::get_lk_detect() method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

EINVAL

The method was called on an environment which had been opened without being configured for locking.

Class

DbEnv, DbLock

See Also

Locking Subsystem and Related Methods, DbEnv::set_lk_detect()