DB_ENV->get_lk_conflicts()

#include <db.h>

int
DB_ENV->get_lk_conflicts(DB_ENV *dbenv,
    const u_int8_t **lk_conflictsp, int *lk_modesp);  

The DB_ENV->get_lk_conflicts() method returns the current conflicts array. You can specify a conflicts array using DB_ENV->set_lk_conflicts()

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

The DB_ENV->get_lk_conflicts() method returns a non-zero error value on failure and 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 DB_ENV->get_lk_conflicts() 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_conflicts()