Library Version 12.1.6.0

Exclusive Database Handles
Prev | Chapter 10. Upgrading Berkeley DB 11.2.5.2 applications to Berkeley DB 11.2.5.3 | Next

## Exclusive Database Handles

Database handles can now be configured to allow exclusive access to the database. To enable exclusive access, call DB->set_lk_exclusive() before calling DB->open(). Set nowait_onoff to non-zero to have DB->open() return immediately, with the error `DB_LOCK_NOTGRANTED` if it cannot immediately get exclusive access to the database, and to 0 to have DB->open() block until it can gain exclusive access.

### New Functions

- DB->set_lk_exclusive()
- DB->get_lk_exclusive()

Prev | Up | Next
Replication Connection Status in the Java API | Home | Configure the Region Size of Heap Databases