Re: htdig: Berkeley DB2 and 3.1.0b1

J. op den Brouw (
Tue, 13 Oct 1998 10:17:21 +0100

Geoff Hutchison wrote:

> >Do these problems also appear in 3.0.8b2 with Berkeley patch (db-2.3.16)?
> >As far as I know the routines in are a sort of
> >one-on-one copy op and
> Well, it took me a while, but I switched my current development copy back
> to GDBM and indexed part of my site. The bug does indeed appear even in
> GDMB databases. I inspected the db.docdb file itself. Though I know you
> cannot just read the records directly, it appears as if the data from
> previous records is "infecting" later records--i.e. the description from an
> early record seems to become the default.

Well, DB2 re-uses the allocated memory. With, GDBM you free() the memory
after an
operation and then you malloc() again. DB2 allocates only once. This was
irritating bug Esa and I were facing. Maybe the allocated memory isn't
reset to \0.
Have to look at the code (when my boss is away........)
> I haven't actually ported the META description stuff back to 3.0.8b2. For
> the moment, I assume it exists there as well since I didn't actually change
> any of the Database files for 3.1.0b1, other than the changes installed by
> you and Andrew for the Berkeley patch.
To unsubscribe from the htdig mailing list, send a message to 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:30 PST