Article View: news.software.nntp
Article #80623Re: Errors in active file
From: Julien ÉLIE
Date: Tue, 21 Apr 2009 17:11
Date: Tue, 21 Apr 2009 17:11
69 lines
3897 bytes
3897 bytes
Hi Steve,
> It explains the whole thing. The right fix is "*lo = ge->high + 1;"
> and it is a bug of ctlinnd lowmark for buffindexed only.
This patch should do the trick:
Index: buffindexed/buffindexed.c
===================================================================
--- buffindexed/buffindexed.c (révision 8406)
+++ buffindexed/buffindexed.c (copie de travail)
@@ -2100,10 +2100,9 @@
GROUPlock(gloc, INN_LOCK_WRITE);
ge = &GROUPentries[gloc.recno];
if (ge->count == 0) {
- if (ge->low < ge->high)
- ge->low = ge->high;
- if (lo)
- *lo = ge->low + 1;
+ ge->low = ge->high + 1;
+ if (lo != NULL)
+ *lo = ge->low;
ge->expired = time(NULL);
GROUPlock(gloc, INN_LOCK_UNLOCK);
return true;
@@ -2158,18 +2157,18 @@
return false;
}
}
- if (newge.low == 0)
- /* no article for the group */
+ if (newge.low == 0) {
+ /* No article for the group. */
newge.low = newge.high;
+ }
+ if (newge.count == 0) {
+ /* The low water mark should be one more than the high water mark
+ * when there is no article in the group. */
+ newge.low = newge.high + 1;
+ }
*ge = newge;
- if (lo) {
- if (ge->count == 0) {
- if (ge->low < ge->high)
- ge->low = ge->high;
- /* lomark should be himark + 1, if no article for the group */
- *lo = ge->low + 1;
- } else
- *lo = ge->low;
+ if (lo != NULL) {
+ *lo = ge->low;
}
ovclosesearch(handle, true);
ge->expired = time(NULL);
>> As expected there are lots of log messages such as:
>> Apr 21 08:38:22 drooper innd: SERVER renumber xs4all.kabel hi from 0 to 2
>
> It would be useful to check whether you see other messages of that kind
> the following days.
I think you will have will this patch "lo from 3 to 2" for the same groups.
--
Julien ÉLIE
« Je viens de rencontrer Isocèle : il a une idée pour un nouveau triangle. » (Woody Allen)
Technical Details
Message-ID:
<gskurs$m1d$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!de-l.enfer-du-nord.net!gegeweb.org!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> <gsf2u0$poh$1@news.trigofacile.com> <slrnguoes7.4ka.steve@news.mixmin.net> <slrngur51d.nub.steve@news.mixmin.net> <gsktvo$k9i$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gskurs$m1d$1@news.trigofacile.com> Subject: Re: Errors in active file Date: Tue, 21 Apr 2009 19:11:18 +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> <gsf2u0$poh$1@news.trigofacile.com> <slrnguoes7.4ka.steve@news.mixmin.net> <slrngur51d.nub.steve@news.mixmin.net> <gsktvo$k9i$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!de-l.enfer-du-nord.net!gegeweb.org!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=response Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1240334012 22573 83.112.154.169 (21 Apr 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Tue, 21 Apr 2009 17:13:32 +0000 (UTC) In-Reply-To: <gsktvo$k9i$1@news.trigofacile.com> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049