Library Version 11.2.5.3

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

## DbEnv::get_lk_max_lockers()

    #include <db_cxx.h>

    int
    DbEnv::get_lk_max_lockers(u_int32_t *, lk_maxp);

The `DbEnv::get_lk_max_lockers()` method returns the maximum number of potential lockers. You can configure this using the DbEnv::set_lk_max_lockers() method.

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

The `DbEnv::get_lk_max_lockers()` 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_maxp

The `DbEnv::get_lk_max_lockers()` method returns the maximum number of lockers in lk_maxp.

### Errors

The `DbEnv::get_lk_max_lockers()` 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_max_lockers()

Prev | Up | Next
DbEnv::get_lk_detect() | Home | DbEnv::get_lk_max_locks()