[pmwiki-users] Questions on release 2.0.0 (PageStore class)
Patrick R. Michaud
pmichaud at pobox.com
Fri Sep 2 13:06:47 CDT 2005
On Fri, Sep 02, 2005 at 01:01:50PM -0500, Patrick R. Michaud wrote:
> On Fri, Sep 02, 2005 at 07:58:33AM +0000, Karl Loncarek wrote:
> > Just one small question to Pm:
> >
> > What is the line (in class PageStore in function write)
> >
> > $s = $s && (filesize("$pagefile,new") > $sz * 0.95);
> >
> > good for? Checking whether the new filesize has not reduced to much?
> > Intended as check whether all went OK (and the file was not got corrupted)?
>
> It's intended as a last-effort check that the file was completely saved.
I should also mention that the $s variable here is true if all
of the I/O operations up to that point have been successful,
and false if any of them have failed.
Pm
More information about the pmwiki-users
mailing list