Article View: news.software.nntp
Article #80613Re: Errors in active file
From: Julien ÉLIE
Date: Sun, 19 Apr 2009 11:43
Date: Sun, 19 Apr 2009 11:43
69 lines
4119 bytes
4119 bytes
Hi Steve,
> Much fewer errors than before but still there. Again this only happens
> when news.daily is run with lowmark. In every instance of the 9103, the
> lowmark=highmark+2. E.g.
> /usr/local/news/db/active:25492: `0000000000' < '0000000002'.
> /usr/local/news/db/active:25742: `0000000093' < '0000000095'.
> /usr/local/news/db/active:25939: `0000000000' < '0000000002'.
> /usr/local/news/db/active:26257: `0000000160' < '0000000162'.
> /usr/local/news/db/active:26264: `0000000343' < '0000000345'.
> /usr/local/news/db/active:26270: `0000000195' < '0000000197'.
> /usr/local/news/db/active:26277: `0000000639' < '0000000641'.
I see it is still the case. Strange.
Could you please try this patch?
Index: innd/ng.c
===================================================================
--- innd/ng.c (révision 8406)
+++ innd/ng.c (copie de travail)
@@ -399,10 +399,9 @@
}
/*
- * Set the low article count for the given group.
- * Like NGrenumber(), but we don't scan the spool,
- * and the himark is ignored.
- */
+** Set the low article count for the given group.
+** Like NGrenumber(), but we don't query the overview database.
+*/
bool
NGlowmark(NEWSGROUP *ngp, long lomark)
{
@@ -419,6 +418,20 @@
LogName, MaxLength(start, start));
return false;
}
+ /* Check whether the high water mark is more than the low water mark
+ * minus one (in the case of an empty newsgroup). If not, we consider
+ * that the newsgroup is empty and we increase the high water mark. */
+ l = atol(f2);
+ if (l+1 < lomark) {
+ syslog(L_NOTICE, RENUMBER, LogName, ngp->Name, "hi", l, lomark-1);
+ if (!FormatLong(f2, lomark-1, f3 - f2 - 1)) {
+ syslog(L_ERROR, NORENUMBER, LogName, ngp->Name, "hi");
+ return false;
+ }
+ ngp->Last = lomark-1;
+ ICDactivedirty++;
+ }
+ /* Update the low water mark. */
l = atol(f3);
if (lomark != l) {
if (lomark < l)
You normally will have output in news.notice during the night, saying
stuff about renumbering from 453 to 454 for instance.
--
Julien ÉLIE
« -- Ils s'arrêtaient tous les jours à 5 heures,
pour boire de l'eau chaude...
-- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Technical Details
Message-ID:
<gsf2u0$poh$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mailReferences:
<slrngqq0mp.782.steve@news.mixmin.net> <goju24$56v$1@news.trigofacile.com> <slrngqsg0q.782.steve@news.mixmin.net> <gomhoo$l6d$1@news.trigofacile.com> <slrngqv4f2.ckv.steve@news.mixmin.net> <gopdi2$dj1$1@news.trigofacile.com> <slrngr0gpo.q8u.steve@news.mixmin.net> <gopghc$jht$1@news.trigofacile.com> <slrngr1psu.q8u.steve@news.mixmin.net> <gornq8$mtf$1@news.trigofacile.com> <slrngr2qjn.ell.steve@news.mixmin.net> <gp0cp7$4jb$1@news.trigofacile.com> <slrngr7ho8.lgn.steve@news.mixmin.net> <slrngrhs5c.c4n.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <gsf2u0$poh$1@news.trigofacile.com> Subject: Re: Errors in active file Date: Sun, 19 Apr 2009 13:43:56 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <slrngqq0mp.782.steve@news.mixmin.net> <goju24$56v$1@news.trigofacile.com> <slrngqsg0q.782.steve@news.mixmin.net> <gomhoo$l6d$1@news.trigofacile.com> <slrngqv4f2.ckv.steve@news.mixmin.net> <gopdi2$dj1$1@news.trigofacile.com> <slrngr0gpo.q8u.steve@news.mixmin.net> <gopghc$jht$1@news.trigofacile.com> <slrngr1psu.q8u.steve@news.mixmin.net> <gornq8$mtf$1@news.trigofacile.com> <slrngr2qjn.ell.steve@news.mixmin.net> <gp0cp7$4jb$1@news.trigofacile.com> <slrngr7ho8.lgn.steve@news.mixmin.net> <slrngrhs5c.c4n.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 69 NNTP-Posting-Host: aaubervilliers-151-1-59-169.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1240141569 26385 83.112.154.169 (19 Apr 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 19 Apr 2009 11:46:09 +0000 (UTC) In-Reply-To: <slrngrhs5c.c4n.steve@news.mixmin.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049