[arvados] updated: 2.7.0-6270-g10564bc0d7

git repository hosting git at public.arvados.org
Tue Apr 2 14:06:01 UTC 2024


Summary of changes:
 sdk/python/arvados/diskcache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  10564bc0d78545b71a5815c3332403f2e8a0d562 (commit)
      from  8215e5931aeed29d82e94b5129a685e0b2f084c3 (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 10564bc0d78545b71a5815c3332403f2e8a0d562
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Tue Apr 2 10:05:41 2024 -0400

    21639: Don't try to madvise zero length blocks
    
    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 3749298210..2d85c11266 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:
+        if self.content is not None and len(self.content) > 0:
             self.content.madvise(mmap.MADV_WILLNEED)
         return self.content
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list