This content has been marked as final. Show 2 replies
There is no way to get an exclusive write lock on a BDB database if you have already opened it to use page level locking. DbEnv::lock_get(), and the rest of the lock interface, should really only be used if you plan to manage all locks obtained in the environment.
What are you trying to achive by getting an exclusive write lock on the database? Maybe I can help you achieve your goal without he exclusive lock.