At 5:31 AM -0500 11/5/98, Alexander Bergolth wrote:
>I had the same problem, but I think it's a bug in the Berkeley DB library.
>(Maybe only on some AIX machines?)
>In my case the problem occurs when opening some existing database files
>with db_open having set the DB_CREATE flag. Without DB_CREATE the database
>can be opened.

Did you report this to SleepyCat?

>I applied the following dirty hack on DB2_db::OpenReadWrite (in DB2_db.cc):
>
>    // Create the database.
>    //
>    // <LEO> strange error opening existing database files
>    //if ((errno = db_open(filename, DB_BTREE, DB_CREATE, mode, dbenv,
>    //                 &dbinfo, &dbp)) == 0)
>    if (access(filename, F_OK) == 0)
>      errno = db_open(filename, DB_BTREE, 0, 0, dbenv, &dbinfo, &dbp);
>    else
>      errno = db_open(filename, DB_BTREE, DB_CREATE, mode, dbenv, &dbinfo,
>&dbp);
>    if (errno == 0)
>    // </LEO>

Perhaps we should have a configure check for AIX and use this code?


-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/


----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to