On Sat, 5 Jul 2003, Lachlan Andrew wrote: > On Wed, 2 Jul 2003 04:24, Neal Richter wrote: > > > It is possible to create two different environments for the > > different DBs in the htdig classes that control them. > > True, but the "_weakcmpr" database is internally created by mp_cmpr.c > for any compressed database -- ht://Dig knows nothing about it. Of > course, we could *change* the API to pass in two database > environments (one for the database proper and one for _weakcmpr), but > that is far from fixing it at the API level.
Ahh.. We could create a frunction in mp_cmpr.c which makes a copy of the current DBENV and use this copy for _weakcmpr. We would need to figure out which DBENV variable fixes the problem. There are around 25 elements to the DBENV structure.. a fair number of these a function pointers and it seems unlikely to be those. > Yes, it is exactly Loic's code (mp_cmpr.c) that I was proposing to > fix. In the past I hacked mp_alloc to try to work around the bug, > but I had planned to back those changes out once b5 was out and > there was time for a real fix. OK. If we confine ourselves to hacking mp_cmpr.c as much as possible that's cool. As long as we're on the same page here. (pun alert) > That sounds impressive. OK -- I'll stop tinkering with the database > code... Not sure you'll think its impressive when you see the < 20 line patch ;-) I'll post it to the group later today. Thanks. Neal Richter Knowledgebase Developer RightNow Technologies, Inc. Customer Service for Every Web Site Office: 406-522-1485 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ htdig-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/htdig-dev