[INN-COMMITTERS] inn/storage/ov3 (ov3.c)
kondou at vix.com
kondou at vix.com
Wed Aug 25 06:54:02 UTC 1999
Date: Tuesday, August 24, 1999 @ 23:54:02
Author: kondou
Update of /dist1/cvs/isc/inn/inn/storage/ov3
from pub3.rc.vix.com:/dist1/isc/kondou/CURRENT/inn/storage/ov3
Modified Files:
ov3.c
----------------------------- Log Message -----------------------------
storage/ov3/ov3.c:
- From: Richard Michael Todd <rmtodd at mailhost.ecn.ou.edu>
- OV3packgroup sometimes (quite often, actually, during makehistory)
fails with "tradindexed: packgroup cant write to %s: %m" error
message. The reason is this: The code attempts to, after mmap()ing
the old index file, write out all the data from "low" to "high" in
the old index file to the new index file in one fell swoop. But the
old index file may be smaller than the number of bytes
nbytes=(ge->high - ge->low + 1)*sizeof(INDEXENTRY). This happens
because entries for the article numbers around ge->high were never
written to the .idx file, because
a) we're doing makehistory and just haven't seen those articles yet,
or
b) those articles were canceled, so no overview was written for them
in the last expireover.
The following patch causes OV3packgroup to only write as many bytes
as are actually present in the old index file.
More information about the inn-committers
mailing list