🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7023

Re: History Lookup Problems

#7023
From: Jerry Aguirre
Date: Mon, 29 Apr 1996 00:00
29 lines
1794 bytes
Cc: 

In article <4lpjai$8q9@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>In <4llq93$mle@olivea.ATC.Olivetti.Com> jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
>>I havn't looked at C news but INN's expire does not recalculate the
>>DBZ tag size as the history file grows.
>
>Do
>	grep dbzfre makehistory.c expire.c
>The resultant 12-byte fix should be obvious. :)
>	/r$

Not sure it can be done in 12 bytes.  The tag size should be based on
the size in bytes of the history file.  That is not directly available
so it needs to be obtained.

In fact now that I check makehistory it looks like it uses the
size in lines to calculate the tag size?  The primary hash used by
DBZ is based on the number of entries, i.e. lines in the history
file.  This is so that there will be a good chance of finding
an empty entry in the history.pag file.

But the tag size is based on the size of the seek offsets and that
is based on the byte size of the history file.  Other than more lines
meaning more bytes there is no direct relationship between the two
sizes.

Technical Details
Message-ID: <4m37td$a0n@olivea.ATC.Olivetti.Com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4lguvk$7p5@terra-x.syr.edu> <gergDqCBpz.Irn@netcom.com> <4llq93$mle@olivea.ATC.Olivetti.Com> <4lpjai$8q9@paperboy.osf.org>

Show Full Headers
Complete Article Headers
Message-ID: <4m37td$a0n@olivea.ATC.Olivetti.Com>
Subject: Re: History Lookup Problems
Date: Mon, 29 Apr 1996 00:00:00 +0000
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
References: <4lguvk$7p5@terra-x.syr.edu> <gergDqCBpz.Irn@netcom.com> <4llq93$mle@olivea.ATC.Olivetti.Com> <4lpjai$8q9@paperboy.osf.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 152093328
Distribution: inet
Organization: Olivetti ATC; Cupertino, CA; USA
Keywords: innd, history
Newsgroups: news.software.nntp