Subject: | Stored file of 0 bytes |
Hi,
We've seen that in the case of a heavy load on a server, a stored file can have a size of 0 bytes.
It seems from the Storable code, in the _store routine, the filehandle is created and then $xsptr
is called to write the data to the file. This means there is a small window where if the perl script
exits, the file will be 0 bytes.
It is possible that we can add some error checking at _retrieve so that a 0 byte file returns an
error, but ideally we don't want a 0 byte file at all.
Would a change to create a temporary file first and then move into place be acceptable?
Ton