diff options
Diffstat (limited to 'src/buildstream/_cas/cascache.py')
-rw-r--r-- | src/buildstream/_cas/cascache.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index 8df0c4640..9394ac5b2 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -691,10 +691,12 @@ class CASCache: batch.send() def _send_directory(self, remote, digest): - missing_blobs = self.remote_missing_blobs_for_directory(remote, digest) + required_blobs = self.required_blobs_for_directory(digest) - # Upload any blobs missing on the server - self.send_blobs(remote, missing_blobs) + # Upload any blobs missing on the server. + # buildbox-casd will call FindMissingBlobs before the actual upload + # and skip blobs that already exist on the server. + self.send_blobs(remote, required_blobs) # get_cache_usage(): # |