DB_ENV->get_lk_max_lockers()
#include <db.h>
int
DB_ENV->get_lk_max_lockers(DB_ENV *dbenv, u_int32_t *lk_maxp); The DB_ENV->get_lk_max_lockers() method returns the maximum number of potential lockers. You can configure this using the DB_ENV->set_lk_max_lockers() method.
The DB_ENV->get_lk_max_lockers() method may be called at any time during the life of the application.
The DB_ENV->get_lk_max_lockers() method returns a non-zero error value on failure and 0 on success.
Parameters
lk_maxp
The DB_ENV->get_lk_max_lockers() method returns the maximum number of lockers in lk_maxp.
Errors
The DB_ENV->get_lk_max_lockers() 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
See Also
Locking Subsystem and Related Methods, DB_ENV->set_lk_max_lockers()