Library Version 12.1.6.2

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

## DbEnv::get_lk_tablesize()

    #include <db_cxx.h>

    int
    DbEnv::get_lk_tablesize(u_int32_t *tablesizep);

The `DbEnv::get_lk_tablesize()` method returns the size of the lock object hash table in the Berkeley DB environment. This value is set using the DbEnv::set_lk_tablesize() method.

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

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

#### tablesizep

The tablesizep parameter references memory into which is copied the size of the lock object hash table configured for the Berkeley DB environment.

### Class

DbEnv, DbLock

### See Also

Locking Subsystem and Related Methods

Prev | Up | Next
DbEnv::get_lk_priority() | Home | DbEnv::set_lk_conflicts()