It never fails (bsddb retirement in 2.3)

Andrew MacIntyre andymac at bullseye.apana.org.au
Tue May 6 08:58:38 EDT 2003


On 6 May 2003, Martin v. [iso-8859-15] Löwis wrote:

> Skip Montanaro <skip at pobox.com> writes:
>
> >     Martin> Notice that Sleepycat v2.x also uses hash v2.
> >
> > How do you conclude this?
>
> I study /usr/include/db2/db_185.h, and see
>
> #define	HASHMAGIC	0x061561
> #define	HASHVERSION	2

This is also the case with the db_185.h for the 3.3.11 & 4.0.14 versions.

> I also link an application with db2, invoke dbopen, and ->close, and
> see that file(1) reports that the file is a DB 1.85 hash version 2
> file.

I can replicate this on FreeBSD with db2 (2.7.7), but not db3 (3.3.11) or
db4 (4.0.14).  Despite the db_185.h HASHVERSION, a db3/db4 linked bsddb185
creates a v7 file.

Likewise, I can open a copy of a pre-existing v2 file with the db2 linked
version of bsddb185, but not with a bsddb185 linked against db3 or db4.

So a HASHVERSION of 2 in db_185.h is no guarantee of success :-(

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac at bullseye.apana.org.au  | Snail: PO Box 370
        andymac at pcug.org.au            |        Belconnen  ACT  2616
Web:    http://www.andymac.org/        |        Australia






More information about the Python-list mailing list