June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int DBENV→set_lk_max_locks(DB_ENV *dbenv, u_int32_t max);
Set the maximum number of locks supported by the Berkeley DB lock subsystem. This value is used by DBENV→open to estimate how much space to allocate for various lock-table data structures. The default value is 1000 locks. For specific information on configuring the size of the lock subsystem, see “Configuring Locking: Sizing the System.”
The DBENV→set_lk_max_locks interface may be used only to configure Berkeley DB before the DBENV→open interface is called.
The DBENV→set_lk_max_locks function returns a non-zero error value on failure and 0 on success.
The database environment’s maximum number of locks may also be set using the environment’s ...