Library Version 12.1.6.2

DbEnv::get_lk_conflicts()
Prev | Chapter 7. The DbLock Handle | Next

## DbEnv::get_lk_conflicts()

    #include <db_cxx.h>

    int
    DbEnv::get_lk_conflicts(const u_int8_t **lk_conflictsp, int *lk_modesp);

The `DbEnv::get_lk_conflicts()` method returns the current conflicts array. You can specify a conflicts array using DbEnv::set_lk_conflicts()

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

The `DbEnv::get_lk_conflicts()` 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_conflictsp

The lk_conflictsp parameter references memory into which a pointer to the current conflicts array is copied.

#### lk_modesp

The lk_modesp parameter references memory into which the size of the current conflicts array is copied.

### Errors

The `DbEnv::get_lk_conflicts()` 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_conflicts()

Prev | Up | Next
Chapter 7. The DbLock Handle | Home | DbEnv::get_lk_detect()