[ZODB-Dev] Use of fsync in FileStorage

Jeremy Hylton jhylton at gmail.com
Mon Jul 26 13:46:42 EDT 2004


On Mon, 26 Jul 2004 13:13:05 -0400, Tim Peters <tim at zope.com> wrote:
> [Toby Dickenson]
> > fwiw, I could swear that FileStorage used to work the way you describe.
> 
> Possibly.  The oldest release I could find was StandaloneZODB 1.0, from
> February 2002, which was the same in this respect.

FileStorage calls flush() on the file after the tpc_vote(), which at
least gets the data out of the application buffers into the os.  Then
it calls sync() in tpc_finish() and truncate() in tpc_abort().  I've
got no clear understanding of what these actually do in the face of
power failures.

I don't believe this is a critical issue.

Jeremy


More information about the ZODB-Dev mailing list