##// END OF EJS Templates
archive-cache: synced with ce
super-admin -
r1247:35680f51 default
parent child Browse files
Show More
@@ -138,6 +138,13 b' class FileSystemCache:'
138 138 for chunk in iterator:
139 139 size += len(chunk)
140 140 writer.write(chunk)
141 writer.flush()
142 # Get the file descriptor
143 fd = writer.fileno()
144
145 # Sync the file descriptor to disk, helps with NFS cases...
146 os.fsync(fd)
147 log.debug('written new archive cache under %s', full_path)
141 148 return size
142 149
143 150 def _get_keyfile(self, key):
General Comments 0
You need to be logged in to leave comments. Login now