Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into no-more-load
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed May 5, 2016
2 parents d90a024 + ee5a462 commit 1a0f448
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ def read_file(*path):
'test': tests_require,
},
install_requires = [
'persistent >= 4.1.0',
'persistent >= 4.2.0',
'BTrees >= 4.2.0',
'ZConfig',
'transaction >= 1.4.4',
'transaction >= 1.5.0',
'six',
'zc.lockfile',
'zope.interface',
Expand Down
10 changes: 3 additions & 7 deletions src/ZODB/FileStorage/FileStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from struct import unpack

from persistent.TimeStamp import TimeStamp
from six import PY3
from six import string_types as STRING_TYPES
from zc.lockfile import LockFile
from zope.interface import alsoProvides
Expand Down Expand Up @@ -2103,13 +2102,10 @@ def flush(self):
This is required if they contain data of rolled back transactions.
"""
# Unfortunately, Python 3.x has no API to flush read buffers, and
# the API is ineffective in Python 2 on Mac OS X.
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()
self.empty()

def close(self):
with self._cond:
Expand Down

0 comments on commit 1a0f448

Please sign in to comment.