Article View: news.software.nntp
Article #81954Re: Keeping the history file "small" vs. expire/expireover programs.
From: Julien ÉLIE
Date: Mon, 05 Oct 2009 18:08
Date: Mon, 05 Oct 2009 18:08
88 lines
4983 bytes
4983 bytes
Hi D. Stussy,
> Also noted: While investigating this, I noted something unusual with the
> "news.daily" script. Is there unnecessary repeated code present?
>
> Pertaining to running expireover after expire: Lines 467-484 and lines
> 487-504 seem to be unnecessary. Can't they all be removed and simply flow
> through to their duplicates at lines 507-523? The only line not duplicated
> in the last block is the "DOEXPIREOVER=false" line which causes the future
> instances to be skipped (as there are no future instances for the last
> block). ...Or did I miss something?
I see that if doexpire is true and doexpireover, dogroupbaseexpiry are false,
we will not run "ctlinnd lowmark" with what you suggest (whereas it was
the case before).
But as "ctlinnd lowmark" is useless without the run of expireover,
I believe we don't care.
Julien
Index: scripts/news.daily.in
===================================================================
--- scripts/news.daily.in (révision 8646)
+++ scripts/news.daily.in (copie de travail)
@@ -464,46 +464,10 @@
if ${DOEXPLOG}; then
echo "expirerm end `date`" >>${EXPLOG}
fi
- ${DOEXPIREOVER} && {
- if ${DOEXPLOG}; then
- echo "${EXPIREOVER} start `date`" >>${EXPLOG}
- fi
- ( cd ${HISTDIR} ; eval ${EXPIREOVER} "${EXPIREOVERFLAGS}" 2>&1 ) | \
- grep -v 'No such file or directory'
- DOEXPIREOVER=false
- if ${DOEXPLOG}; then
- echo "${EXPIREOVER} end `date`" >>${EXPLOG}
- fi
- }
- test -n "${LOWMARKFILE}" && {
- echo "lowmarkrenumber begin `date`: (${LOWMARKFILE})" >>${EXPLOG}
- ctlinnd -s -t`wc -l <${ACTIVE}` lowmark ${LOWMARKFILE} 2>&1
- echo "lowmarkrenumber end `date`" >>${EXPLOG}
- rm -f ${MOST_LOGS}/expire.lastlowmark
- mv ${LOWMARKFILE} ${MOST_LOGS}/expire.lastlowmark
- }
}
- ## Expire overview lines for files we just removed.
- if ${DOEXPIREOVER}; then
- if ${DOEXPLOG}; then
- echo "${EXPIREOVER} start `date`" >>${EXPLOG}
- fi
- ( cd ${HISTDIR} ; eval ${EXPIREOVER} "${EXPIREOVERFLAGS}" 2>&1 ) | \
- grep -v 'No such file or directory'
- DOEXPIREOVER=false
- if ${DOEXPLOG}; then
- echo "${EXPIREOVER} end `date`" >>${EXPLOG}
- fi
- test -n "${LOWMARKFILE}" && {
- echo "lowmarkrenumber begin `date`: (${LOWMARKFILE})" >>${EXPLOG}
- ctlinnd -s -t`wc -l <${ACTIVE}` lowmark ${LOWMARKFILE} 2>&1
- echo "lowmarkrenumber end `date`" >>${EXPLOG}
- rm -f ${MOST_LOGS}/expire.lastlowmark
- mv ${LOWMARKFILE} ${MOST_LOGS}/expire.lastlowmark
- }
- fi
fi
-## In case noexpire expireover.
+
+## Remove the articles that are supposed to go from the overview.
if ${DOEXPIREOVER}; then
if ${DOEXPLOG}; then
echo "${EXPIREOVER} start `date`" >>${EXPLOG}
@@ -514,9 +478,9 @@
echo "${EXPIREOVER} end `date`" >>${EXPLOG}
fi
test -n "${LOWMARKFILE}" && {
- echo "lowmarkrenumber begin `date`: (${LOWMARKFILE})" >>${EXPLOG}
+ echo "lowmarkrenumber begin `date`: (${LOWMARKFILE})" >>${EXPLOG}
ctlinnd -s -t`wc -l <${ACTIVE}` lowmark ${LOWMARKFILE} 2>&1
- echo "lowmarkrenumber end `date`" >>${EXPLOG}
+ echo "lowmarkrenumber end `date`" >>${EXPLOG}
rm -f ${MOST_LOGS}/expire.lastlowmark
mv ${LOWMARKFILE} ${MOST_LOGS}/expire.lastlowmark
}
Technical Details
Message-ID:
<hadcms$ng6$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:
<hab4b5$4pu$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <hadcms$ng6$1@news.trigofacile.com> Subject: Re: Keeping the history file "small" vs. expire/expireover programs. Date: Mon, 5 Oct 2009 20:08:24 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <hab4b5$4pu$1@snarked.org> 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: 88 NNTP-Posting-Host: aaubervilliers-151-1-30-253.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1254766109 24070 83.112.21.253 (5 Oct 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Mon, 5 Oct 2009 18:08:29 +0000 (UTC) In-Reply-To: <hab4b5$4pu$1@snarked.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049