🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Andy Burgess Tue, 31 Aug 1993 16:58
nnmaster adding ignore flags to GROUPS file by itself
#4720
Author: Andy Burgess
Date: Tue, 31 Aug 1993 16:58
32 lines
2405 bytes
Here's some odd behavior I noticed while editing the GROUPS file.

I edit the file then run nnmaster -G. I do this a few times.
At some point when I open the file for editing I see that all the newsgroups have 
the ignore flag (the exclamation mark) added to them. 
If I don't manually remove these flags then nnmaster -G will purge the 
database of all the newsgroups. Naturally I found this out the hard way :-).
(it takes about six hours here to rebuild the database for 100K articles)
As long as I delete the flags there don't seem to be any other symptoms.

I looked at the source code and it looks like these flags are added in 
db_append_group in db.c whenever a new newsgroup is automatically added if
the M_IGNORE_G is set for the group.
The two places that I see the M_IGNORE_G bit being set is in db_parse_group
when the GROUPS file is being read and in group_restriction in master.c.
The latter I am not familar with.  I do collect some groups explicitly via
nnmaster -u -h 0 <groupname>. Perhaps the groups are marked M_IGNORE_G during
this and if a new group is detected the M_IGNORE_G bits are erroneously
written to the GROUPS file? This does fit the intermittant nature of the bug.
Also I just noticed that the group that I explicitly collect is the one group
that does NOT have the (!) flag set in the GROUPS file.

Has anyone else ever seen this? I suppose with NOV catching on this may
all be moot.

Andy
-- 
==============================================================================
Andrew A. Burgess      |   "Expect five minute delays" CalTrans sign on Hwy 9
aab@cichlid.com        |   or philosophy of life?
voice (408) 335 4779   |
==============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads