[arvados] updated: 2.7.2-14-g4c1e916cff
git repository hosting
git at public.arvados.org
Fri May 24 01:34:31 UTC 2024
Summary of changes:
sdk/python/arvados/diskcache.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 4c1e916cff3cae8c384b34295f346e522e0672f2 (commit)
from de6342dbb0832783f7279fa1cbc78e65e80f1db4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 4c1e916cff3cae8c384b34295f346e522e0672f2
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Thu May 23 21:34:08 2024 -0400
Turns out madvise isn't in Python 3.7
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/sdk/python/arvados/diskcache.py b/sdk/python/arvados/diskcache.py
index 528a7d28b5..58199b4a53 100644
--- a/sdk/python/arvados/diskcache.py
+++ b/sdk/python/arvados/diskcache.py
@@ -39,7 +39,7 @@ class DiskCacheSlot(object):
# just a few pages at a time), reducing the number of page
# faults and improving performance by 4x compared to not
# calling madvise.
- if self.content:
+ if self.content and hasattr(mmap.mmap, 'madvise'):
self.content.madvise(mmap.MADV_WILLNEED)
return self.content
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list