summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-08-29 12:46:10 +0200
committerJürg Billeter <j@bitron.ch>2019-08-29 12:46:10 +0200
commit204f6246cea6de2a7100da84a7d6adb005ddcae1 (patch)
tree2e06c5a4772c84372ef9c00951558fc372cec7eb
parentfe3d571788f927eef1f705b00f6bc69f1d908c31 (diff)
downloadbuildstream-204f6246cea6de2a7100da84a7d6adb005ddcae1.tar.gz
cascache.py: Use _CASBatchRead in _ensure_blob()
_ensure_blob() was the only caller of _fetch_blob().
-rw-r--r--src/buildstream/_cas/cascache.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py
index e5fc530a7..03d7e5dda 100644
--- a/src/buildstream/_cas/cascache.py
+++ b/src/buildstream/_cas/cascache.py
@@ -823,7 +823,9 @@ class CASCache():
# already in local repository
return objpath
- remote._fetch_blob(digest)
+ batch = _CASBatchRead(remote)
+ batch.add(digest)
+ batch.send()
return objpath