Discussion:
Database to be opened by a server process and an utility to manage data
(too old to reply)
vasu.psl
2009-06-14 12:40:22 UTC
Permalink
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.
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
vasu.psl
2009-06-14 12:51:24 UTC
Permalink
Re posting after format corrected:
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.

Now I would like to know the following things:

1. 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>

2. the flags to be used by the utility
3. should  I take care of database recovery in server process when
the utility fails

Thanks,
Vasu

Loading...