« Return to Thread: Data corruption
On Sunday 14 June 2009, Sandor Bodo-Merle wrote:That's just the temporary buffer. The writing to disk takes place in the
> Tellico does not check the return values of KZip::writeFile in
> tellicozipexporter. The question is how to handle a failure?
FileHandler class which uses the KSaveFile class, which is supposed to
guarantee atomically (all or nothing). Your results say that it is not
working.
From the API doc, maybe I need to call saveFile.flush() before callign
saveFile.finalize(). I'm not sure, though.
But the intent is to have the check for file system space in there.
Robby
_______________________________________________
> On Sun, Jun 14, 2009 at 6:58 PM, Sandor Bodo-Merle
<sbodomerle@...>wrote:
> > Hi Robby,
> >
> > with current svn HEAD you will get silent data corruption when there is
> > no more space on the file system to write the new *.tc file.
> > The size of the tc file will be much smaller, and tellico is not able
> > to open it on the next start.
> >
> > br
> > Sanyi
tellico-users mailing list
tellico-users@...
http://forge.novell.com/mailman/listinfo/tellico-users
« Return to Thread: Data corruption
| Free embeddable forum powered by Nabble | Forum Help |