Google

Berkeley DB Reference Guide:
Upgrading Berkeley DB Applications

PrevRefNext

Release 4.0: lock_XXX

The C API for the Berkeley DB Locking subsystem was reworked in the 4.0 release as follows:

Historic functional interfaceBerkeley DB 4.X method
lock_detectDB_ENV->lock_detect
lock_getDB_ENV->lock_get
lock_idDB_ENV->lock_id
lock_putDB_ENV->lock_put
lock_statDB_ENV->lock_stat
lock_vecDB_ENV->lock_vec

Applications calling any of these functions should update their calls to use the enclosing DB_ENV handle's method (easily done as the first argument to the existing call is the correct handle to use).

In addition, the DB_ENV->lock_stat call has been changed in the 4.0 release to take a flags argument. To leave their historic behavior unchanged, applications should add a final argument of 0 to any calls made to DB_ENV->lock_stat.

The C++ and Java APIs for the DbLock::put (DbLock.put) method was reworked in the 4.0 release to make the lock put interface a method of the DB_ENV handle rather than the DbLock handle. Applications calling the DbLock::put or DbLock.put method should update their calls to use the enclosing DB_ENV handle's method (easily done as the first argument to the existing call is the correct handle to use).

PrevRefNext

Copyright Sleepycat Software