vasu.psl
2009-06-14 12:40:22 UTC
Hi,
We have a multi-threaded server process using a set of BDB databases .
We have a requirement to write a small utility to manage the same
databases for modifying and deleting records manually whenever it is
required.
<pre>
m_dbenv->open(m_dbenv, m_HomeDir, DB_CREATE | DB_INIT_LOCK |
DB_INIT_LOG |
DB_INIT_MPOOL |
DB_INIT_TXN |
DB_THREAD |
DB_RECOVER | DB_PRIVATE,
0);
</pre>
We have a multi-threaded server process using a set of BDB databases .
We have a requirement to write a small utility to manage the same
databases for modifying and deleting records manually whenever it is
required.
the changes that I have to make to the server process while opening those BDB environments / databases.
The flags currently used i the server process are<pre>
m_dbenv->open(m_dbenv, m_HomeDir, DB_CREATE | DB_INIT_LOCK |
DB_INIT_LOG |
DB_INIT_MPOOL |
DB_INIT_TXN |
DB_THREAD |
DB_RECOVER | DB_PRIVATE,
0);
</pre>
the flags to be used by the utility
should I take care of database recovery in server process when the utility fails
should I take care of database recovery in server process when the utility fails