[Yt-svn] yt-commit r1798 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue Jul 20 08:49:40 PDT 2010


Author: mturk
Date: Tue Jul 20 08:49:40 2010
New Revision: 1798
URL: http://yt.enzotools.org/changeset/1798

Log:
This line should prevent race conditions with creating the .yt files



Modified:
   trunk/yt/lagos/HierarchyType.py

Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py	(original)
+++ trunk/yt/lagos/HierarchyType.py	Tue Jul 20 08:49:40 2010
@@ -156,12 +156,14 @@
             writeable = os.access(fn, os.W_OK)
         writeable = writeable and not ytcfg.getboolean('lagos','onlydeserialize')
         # We now have our conditional stuff
+        self._barrier()
         if not writeable and not exists: return
         if writeable:
             self._data_mode = 'a'
             if not exists: self.__create_data_file(fn)
         else:
             self._data_mode = 'r'
+
         self.__data_filename = fn
         self._data_file = h5py.File(fn, self._data_mode)
 



More information about the yt-svn mailing list