Re: htdig: DB2 problem on AIX 4.1.5 - unexpeceted file format


Geoff Hutchison (Geoffrey.R.Hutchison@williams.edu)
Tue, 24 Nov 1998 14:32:31 -0500


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
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:28:52 PST