Re: [ZODB-Dev] Use of fsync in FileStorage

Jeremy Hylton <[email protected]>
Newsgroups gmane.comp.web.zope.zodb.dirstorage,gmane.comp.web.zope.zodb
Message-ID <[email protected]>
On Mon, 26 Jul 2004 13:13:05 -0400, Tim Peters <[email protected]> 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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.