|
From: Lachlan A. <lh...@us...> - 2003-06-29 10:36:24
|
Greetings Neal, On Wed, 25 Jun 2003 02:35, Neal Richter wrote: > Do you know for certain that the environment is the same? Isn't that the meaning of passing the DB_ENV argument to =20 CDB_db_create()? I'm not sure how else to make two databases share=20 an environment. > It would be nice if I could duplicate this bug, but I've never been > able to. As Geoff pointed out recently, anyone with a sourceforce account can=20 get a compile farm account. That has a mac which had the problem. =20 See=20 <http://sourceforge.net/docman/display_doc.php?docid=3D762&group_id=3D1>. > This smells like something that should be handled in the WordDB > class at the DB API level. Hmm... Perhaps, but the original aim of the compression was to make=20 it transparent. Since it creates its own database, that seems to me=20 to be the place to fix things. I agree that totally disabling the environment is a bit drastic. It=20 should be possible to create a new environment containing *only* the=20 weak compression database, but with all "shared" fields (other than=20 the memory pool) copied from the environment of the main database's=20 environment. How would that sound? Regarding implementing a separate cache, that is certainly possible,=20 but it has the disadvantage of duplicating existing code. (I'm a big=20 fan of avoiding code bloat.) Cheers, Lachlan --=20 lh...@us... ht://Dig developer DownUnder (http://www.htdig.org) |