#include <db.h> int DB_ENV->get_lk_max_locks(DB_ENV *dbenv, u_int32_t *lk_maxp);
The DB_ENV->get_lk_max_locks()
method returns the maximum number of
potential locks. You can configure this using the
DB_ENV->set_lk_max_locks()
method.
The DB_ENV->get_lk_max_locks()
method may be called at any time
during the life of the application.
The DB_ENV->get_lk_max_locks()
method returns a non-zero error value on failure and 0 on success.
The DB_ENV->get_lk_max_locks()
method may fail and return one of the following non-zero errors: