K 10
svn:author
V 6
kondou
K 8
svn:date
V 27
1999-08-25T06:54:01.000000Z
K 7
svn:log
V 969
storage/ov3/ov3.c:
	- From: Richard Michael Todd <rmtodd@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.

END
