Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with multiple processes and DB_REGISTER

567611Mar 18 2007 — edited Mar 22 2007
Hi,

I run the same multi-threaded executable twice (Windows, BDB 4.4.16); the first opens the environment, and works happily for however long, but after the second opens the environment, does some work and closes the environment, the first gets DB_RUN_RECOVERY on every call.

I use DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_REGISTER | DB_RECOVER | DB_THREAD for both opens. All transactions and cursors seem to terminate cleanly in the second instance of the process. There are 40-50 database files in the environment, some containing multiple DB_BTREE databases.

Surely the first process shouldn't have to perform recovery after access by a second process?

Thanks for any help,

Tony
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2007
Added on Mar 18 2007
7 comments
2,250 views