[Zope-CVS] CVS: Products/FileCacheManager - FileCacheManager.py:1.4

Jens Vagelpohl jens at dataflake.org
Fri Aug 13 05:20:55 EDT 2004


Update of /cvs-repository/Products/FileCacheManager
In directory cvs.zope.org:/tmp/cvs-serv32236

Modified Files:
	FileCacheManager.py 
Log Message:
- os.fdatasync is not available on Windows and (yikes!) OS X. Replace 
  with os.fsync. Not exactly sure why os.fdatasync was chosen in the 
  first place, so this decision might need more mulling over.


=== Products/FileCacheManager/FileCacheManager.py 1.3 => 1.4 ===
--- Products/FileCacheManager/FileCacheManager.py:1.3	Fri Aug 13 04:41:20 2004
+++ Products/FileCacheManager/FileCacheManager.py	Fri Aug 13 05:20:55 2004
@@ -95,7 +95,7 @@
                     while data is not None and hasattr(data, 'next'):
                         os.write(fd, data.data)
                         data = data.next
-                os.fdatasync(fd)
+                os.fsync(fd)
                 os.close(fd)
                 # rename that sucker.
                 # This may fail if they are not on the same filesystem.



More information about the Zope-CVS mailing list