🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81407

Re: Q: Regarding overview creation and the active file.

#81407
From: Russ Allbery
Date: Tue, 16 Jun 2009 01:28
31 lines
2540 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:

> In file:  storage/tradindexed/tdx-group.c, routine hashmap_load()
>
> I note that in the while-loop, we read EVERY entry from the active file and
> create a hash for it.  As this is to determine OVERVIEW data, I question
> whether we need to do this.  Should we SKIP entries marked "j", "x", and
> "=" because those "groups" will always be EMPTY ("j" will file in "junk",
> "x" will be rejected, and "=" will file in the alias group).  Only groups
> marked with "m", "n", and "y" will be non-empty.  (I note that groups
> marked with "j", "x", or "=" or which were previously removed may have
> residual overview data).  Is it this loop that effectively causes "empty"
> overview files to be created?
>
> Or is it the loop in index_audit_active() that causes this?
>
> I recognize that nnrpd may need empty overview files to know that a group
> exists, but when a group is declared as "j", "x", or "=", does it "really"
> exist (for this purpose)?

You'd have to check the nnrpd code to be sure, but I think it gets
everything about groups in some places, including the flag, from
overview.  If that's the case, they need to be present in overview for
nnrpd to behave correctly for those groups (which is not quite the same
as having them not exist).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87hbyhx90e.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <h16rde$stb$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <87hbyhx90e.fsf@windlord.stanford.edu>
Subject: Re: Q: Regarding overview creation and the active file.
Date: Mon, 15 Jun 2009 18:28:01 -0700
From: Russ Allbery <rra@stanford.edu>
References: <h16rde$stb$1@snarked.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 31
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.stanford.edu 1245115681 19187 171.67.225.134 (16 Jun 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
Cancel-Lock: sha1:ueuZ3ICiAaUSBxnI1NZe31WXEIA=