Commit 86e62dae authored by Jim Fulton's avatar Jim Fulton

On Python 2 and Mac OS X, checkFlushAfterTruncate was failing.

Changed to always empty the file pool.  I doubt that just flushing on
Python 2 was much of an optimization, and ... Python 2. :)
parent 2ae41705
......@@ -2103,12 +2103,7 @@ class FilePool:
This is required if they contain data of rolled back transactions.
"""
with self.write_lock():
if PY3:
# Unfortunately, Python 3.x has no API to flush read buffers.
self.empty()
else:
for f in self._files:
f.flush()
def close(self):
with self._cond:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment