Re: makehistory can generate duplicate lines

Kamil Jońca <[email protected]> Tue, 22 Nov 2022 22:47:40 +0100
Newsgroups gmane.network.inn
Message-ID <[email protected]>
Kamil Jońca <[email protected]> writes:

> Kamil Jońca <[email protected]> writes:
>
> [....]
>>
>> I applied both patches to debian sources, and I am runnning this
>> server.
>> Nothing exploded, seems to work.
>>
>> --8<---------------cut here---------------start------------->8---
>> sudo -u news env PATH=$PATH:/usr/lib/news/bin makehistory -O -x -S 
>> --8<---------------cut here---------------end--------------->8---
>>
>> creates no duplicates.
>>
>> Effect of
>>
>> --8<---------------cut here---------------start------------->8---
>> sudo -u news env PATH=$PATH:/usr/lib/news/bin makehistory -f history.n
>> --8<---------------cut here---------------end--------------->8---
>
> But I am almost sure that this is still something wrong with
> makehistory/cnfs code.
> It is not understandable for me that first article during scanning spool
> has different cycle number than others. (On fully wrapped buffer)
> Maybe I am missed something.
> KJ
Hm.

--8<---------------cut here---------------start------------->8---
    token = CNFSMakeToken(cycbuff->name, offset, cycbuff->blksz,
                          (offset > cycbuff->free) ? cycbuff->cyclenum - 1
                                                   : cycbuff->cyclenum,
                          cah.class);
--8<---------------cut here---------------end--------------->8---

I think this might be interesting part, especially "offset >
cycbuff->free" condition, (maybe "=>" inequality?), but this is probably
far shot.

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
-- 
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers