intmail01 (AT) gmail (DOT) com writes:
Quote:
I tried to create a single file containing many databases.
Creating environnement then handle works well but opening the
database gives me an EINVAL error. |
Your code is probably giving some bad parameter to the open call.
Maybe we could guess what, if you would show us the relevant code.
Quote:
Could you tell me how to setu up the environnement and what
customizations
are realy required to build multiple database in a single files. |
I open my environment with these flags:
DB_INIT_MPOOL | DB_INIT_LOG | DB_INIT_LOCK | DB_INIT_TXN | DB_CREATE
Then I create a transaction tx, create the database handles dbA and dbB,
with no special flags, and open the databases like this:
dberr = dbA->open(dbA, tx, "filename", "dbA", DB_BTREE, DB_CREATE, 0644);
dberr = dbB->open(dbB, tx, "filename", "dbB", DB_BTREE, DB_CREATE, 0644);
Never failed me.
best regards
Patrick