diff --git a/iwla.py b/iwla.py index 650dbdc..91c1727 100755 --- a/iwla.py +++ b/iwla.py @@ -249,6 +249,7 @@ class IWLA(object): with open(filename + '.tmp', 'wb+') as f, self._openDB(filename, 'w') as fzip: pickle.dump(obj, f) + os.fsync(f) f.seek(0) fzip.write(f.read()) os.remove(filename + '.tmp')