#include <db.h> int DB_ENV->set_lk_priority(DB_ENV *dbenv, u_int32_t lockerid, u_int32_t priority);
Set the priority of the given locker. This value is used when resolving deadlocks, the deadlock resolution algorithm will reject a lock request from a locker with a lower priority before a request from a locker with a higher priority.
By default, all lockers are created with a priority of 100.
The DB_ENV->set_lk_priority()
method may be
called at any time during the life of the application.
The DB_ENV->set_lk_priority()
method returns a non-zero error value on failure and 0 on success.
The DB_ENV->set_lk_priority()
method may fail and return one of the following non-zero errors: