Article View: news.software.nntp
Article #41482Re: dreaderd newgroups help
From: Jason Lavoie
Date: Thu, 11 Nov 1999 00:00
Date: Thu, 11 Nov 1999 00:00
81 lines
3934 bytes
3934 bytes
Mike Horwath <drechsau+usenet@yuck.net> wrote:
> Jason Lavoie <jason@mint.net> wrote:
> : Mike Horwath <drechsau+usenet@yuck.net> wrote:
> :> Jason Lavoie <jason@mint.net> wrote:
> :> : Hourly, I run the dsyncgroups from cron to sync article numbers:
> :> : dbin/dsyncgroups -h feeder -a -D -NBX -XX
> :> Why are you updating the beginning article number?
> :> Don't do that.
> : [...]
> :> -NBX is often used in slaved-cache situa-
> :> tion to keep the range synchronized with the remote NNTP
> :> host's expiration.
> : [...]
> : I want my reader to be a slave, right? This should be syncronized with
> : the feeder server's expiration, no?
> Set your overview expiration correctly and you don't have to do this.
Yes, but this requires me to "maintain" the diablo configuration
(dexpire.ctl, I believe) so that it correctly represents my spool
retention time. This is extra work that I shouldn't need to do since it
can be automated by syncing the active files -- laziness is a virtue. :)
> :> Now tell me exactly what you are trying to do?
> : I'm trying to be sure that my active file has the new groups as they are
> : created on the inn server. I'm also trying to make sure that the
> : article numbers are the same, so that readers will see the articles that
> : are available. To me, this means updating the high/low numbers in the
> : dactive file to correspond with the feeder machine.
> But you don't wanna update the high number at all since you are
> xrefing already.
Yes, you're right.
> The low number will be updated by dexpireover if you set things up
> right.
I don't like that arrangement (see above).
> Maybe there is a bug in dsyncgroups for updating the low number, I
> don't know, but I don't rely upon that for my testing.
Yes, I found the bug last night. dsyncgroups will update the CTS for
any group that is in the local db, but hasn't received any articles
since the last sync. This patch fixes it:
diff -ur diablo-1.24-REL/util/dsyncgroups.c diablo-1.24-MINT/util/dsyncgroups.c
--- diablo-1.24-REL/util/dsyncgroups.c Mon Apr 26 00:24:03 1999
+++ diablo-1.24-MINT/util/dsyncgroups.c Thu Nov 11 11:11:42 1999
@@ -245,6 +245,7 @@
desc
);
grp->gr_State &= ~(GRF_NEW|GRF_MODIFIED);
+ grp->gr_State &= ~(GRF_CTS|GRF_LMTS);
grp->gr_State |= GRF_FROMLOCAL;
}
> The high will be syncronized, the lows might not depending on your
> expiration you have set on the slave.
With the above patch in place, I don't have to depend on dexpireover and
dexpire.ctl to maintain the low count. It will be pushed from the low
count on my feeders active file.
Thanks very much for talking me through this. I'm quite a happy camper
to have this working.
-j
--
"What is the sound of Perl? Is it not the sound of a | Jason Lavoie
wall that people have stopped banging their heads against?" | jason@mint.net
--Larry Wall in <1992Aug26.184221.29627@netlabs.com> |
Technical Details
Message-ID:
<80etk9$v8o$1@ruby.mint.net>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-mailReferences:
<80a26a$458$1@ruby.mint.net> <ichW3.4328$rK2.325206@ptah.visi.com> <80cce7$vpq$1@ruby.mint.net> <4mnW3.4416$rK2.338948@ptah.visi.com>Show Full Headers
Complete Article Headers
Message-ID: <80etk9$v8o$1@ruby.mint.net>
Subject: Re: dreaderd newgroups help
Date: Thu, 11 Nov 1999 00:00:00 +0000
From: Jason Lavoie <jason@mint.net>
References: <80a26a$458$1@ruby.mint.net> <ichW3.4328$rK2.325206@ptah.visi.com> <80cce7$vpq$1@ruby.mint.net> <4mnW3.4416$rK2.338948@ptah.visi.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
X-Deja-AN: 547371435
X-Trace: ruby.mint.net 942340553 32024 208.220.34.42 (11 Nov 1999 17:15:53 GMT)
Organization: The Maine InternetWorks, Inc.
User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (Linux/2.0.36 (i586))
Newsgroups: news.software.nntp
X-Complaints-To: abuse@mint.net