[arvados] updated: 2.7.0-6271-g593917ad86
git repository hosting
git at public.arvados.org
Tue Apr 2 15:23:44 UTC 2024
Summary of changes:
sdk/python/arvados/diskcache.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 593917ad86ce138fd4735628a3437a920130b691 (commit)
from 10564bc0d78545b71a5815c3332403f2e8a0d562 (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 593917ad86ce138fd4735628a3437a920130b691
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue Apr 2 11:23:20 2024 -0400
21639: Make sure it is a mmap object before calling madvise
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 2d85c11266..1e885c15e2 100644
--- a/sdk/python/arvados/diskcache.py
+++ b/sdk/python/arvados/diskcache.py
@@ -32,7 +32,7 @@ class DiskCacheSlot(object):
def get(self):
self.ready.wait()
- if self.content is not None and len(self.content) > 0:
+ if isinstance(self.content, mmap.mmap):
self.content.madvise(mmap.MADV_WILLNEED)
return self.content
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list