Commit b37dfbd2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f82dc053
...@@ -781,9 +781,8 @@ class _ZBigFileH(object): ...@@ -781,9 +781,8 @@ class _ZBigFileH(object):
def invalidate_page(self, pgoffset): def invalidate_page(self, pgoffset):
return self.zfileh.invalidate_page(pgoffset) return self.zfileh.invalidate_page(pgoffset)
@property
def uses_mmap_overlay(self): def uses_mmap_overlay(self):
return self.zfileh.uses_mmap_overlay return self.zfileh.uses_mmap_overlay()
# ~~~~ ISynchronizer ~~~~ # ~~~~ ISynchronizer ~~~~
......
...@@ -139,7 +139,7 @@ def test_bigfile_filezodb(): ...@@ -139,7 +139,7 @@ def test_bigfile_filezodb():
# evict all loaded pages and test loading them again # evict all loaded pages and test loading them again
# (verifies ZBlk.loadblkdata() & loadblk logic when loading data the second time) # (verifies ZBlk.loadblkdata() & loadblk logic when loading data the second time)
reclaimed = ram_reclaim_all() reclaimed = ram_reclaim_all()
if fh.uses_mmap_overlay: if fh.uses_mmap_overlay():
assert reclaimed == 0 assert reclaimed == 0
else: else:
assert reclaimed >= blen # XXX assumes pagesize=blksize assert reclaimed >= blen # XXX assumes pagesize=blksize
......
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