Article View: news.software.nntp
Article #80621Re: Errors in active file
From: Julien ÉLIE
Date: Tue, 21 Apr 2009 16:56
Date: Tue, 21 Apr 2009 16:56
98 lines
4458 bytes
4458 bytes
Hi Steve,
> It's looking good!
> Running inncheck now produces no errors.
Yep, the patch worked as expected.
I have just tested what happens if I post a new article in
one of your empty group.
Before posting:
GROUP wny.yumyum
211 0 5 4 wny.yumyum
LIST ACTIVE wny.yumyum*
215 Newsgroups in form "group high low flags"
wny.yumyum 0000000005 0000000006 y
..
which means that the overview thinks low=6 and high=4
(in fact, for an empty group, we take high and use low=high+1
for GROUP and we take low and use high=low-1 for the
active file during "ctlinnd lowmark")
I was worried about the number the article will take.
And here is the result after the post:
LISTGROUP wny.yumyum
211 1 5 6 wny.yumyum
6
..
LIST ACTIVE wny.yumyum*
215 Newsgroups in form "group high low flags"
wny.yumyum 0000000006 0000000006 y
..
That's fine: it properly took 6 (one more that the previously
displayed high water mark -> readers will find the new article).
But low seems to be 5 for GROUP... That astonishes me :-/
Unless it was already 5 before, oh yes, that must have been the case!
tradindexed
-----------
if (new_entry.low == 0)
new_entry.low = new_entry.high + 1;
tdx_index_rebuild_finish(index, entry, &new_entry);
if (low != NULL)
*low = entry->low;
ovdb
----
if(gi.count == 0 && lowest == 0)
gi.low = gi.high+1;
if(lo)
*lo = gi.low;
buffindexed
-----------
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;
}
And obviously, as high was 4 and low was 5, buffindexed advertises 6
for the low water mark! The previous condition which puts high in low
is not done and low equals 2 more than high.
It explains the whole thing. The right fix is "*lo = ge->high + 1;"
and it is a bug of ctlinnd lowmark for buffindexed only.
(Note that thanks to your report, I had already fixed a "ctlinnd renumber"
bug last month, and improved the robustness of expiry process.)
> 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.
Thanks!
--
Julien ÉLIE
« Je viens de rencontrer Isocèle : il a une idée pour un nouveau
triangle. » (Woody Allen)
Technical Details
Message-ID:
<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-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>Show Full Headers
Complete Article Headers
Message-ID: <gsktvo$k9i$1@news.trigofacile.com> Subject: Re: Errors in active file Date: Tue, 21 Apr 2009 18:56: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> 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: 98 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 1240333113 20786 83.112.154.169 (21 Apr 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Tue, 21 Apr 2009 16:58:33 +0000 (UTC) In-Reply-To: <slrngur51d.nub.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