Show More
@@ -138,6 +138,13 b' class FileSystemCache:' | |||||
138 | for chunk in iterator: |
|
138 | for chunk in iterator: | |
139 | size += len(chunk) |
|
139 | size += len(chunk) | |
140 | writer.write(chunk) |
|
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 | return size |
|
148 | return size | |
142 |
|
149 | |||
143 | def _get_keyfile(self, key): |
|
150 | def _get_keyfile(self, key): |
General Comments 0
You need to be logged in to leave comments.
Login now