Problem with multiple processes and DB_REGISTER
567611Mar 18 2007 — edited Mar 22 2007Hi,
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