[Development] QFile: writing via a temporary file

Oswald Buddenhagen oswald.buddenhagen at nokia.com
Tue Jan 10 13:31:12 CET 2012


On Tue, Jan 10, 2012 at 01:00:42PM +0100, ext João Abecasis wrote:
> It is not appropriate to tag an atomically-replace-previous-version on
> to the close()
>
you don't provide any supporting evidence for that pov, though.

> and normal clean up that the destructor does.
> 
that i agree with.

> > No, whatever this class is, close() without commit() means
> > "rollback".
> 
> Right. Keep in mind we are not only saving the new version. We're also
> destroying a previously known good copy.
> 
uhm, so? without the temp file, open() would already do that.



More information about the Development mailing list