[ZODB-Dev] Use of fsync in FileStorage
Dieter Maurer
dieter at handshake.de
Tue Jul 27 13:45:24 EDT 2004
Toby Dickenson wrote at 2004-7-26 21:07 +0100:
> ...
>The original poster argued that a power loss at the wrong time can corrupt a
>recent FileStorage transaction. When FileStorage next starts up it thinks
>that all the data is on disk and carries on as normal, yet the data is
>corrupt.
If "fsync" does what people think it should do,
then a single "fsync" is enough -- after the transaction
has been written and before the "status" byte is written.
When I remember correctly the original post, then FileStorage
has precisely this "fsync".
--
Dieter
More information about the ZODB-Dev
mailing list