DB_ENV->get_lk_detect()

#include <db.h>

int
DB_ENV->get_lk_detect(DB_ENV *dbenv, u_int32_t *lk_detectp);  

The DB_ENV->get_lk_detect() method returns the deadlock detector configuration. You can manage this using the DB_ENV->set_lk_detect() method.

The DB_ENV->get_lk_detect() method may be called at any time during the life of the application.

The DB_ENV->get_lk_detect() method returns a non-zero error value on failure and 0 on success.

Parameters

lk_detectp

The DB_ENV->get_lk_detect() method returns the deadlock detector configuration in lk_detectp.

Errors

The DB_ENV->get_lk_detect() method may fail and 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

DB_ENV, DB_LOCK

See Also

Locking Subsystem and Related Methods, DB_ENV->set_lk_detect()