diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-03-03 09:04:35 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-03-24 09:33:46 +0100 |
commit | c7e8a8d8c2a068ad2520aa3edf4ccd5bd0c028a0 (patch) | |
tree | e91fbd1f5f23b2e238f1090c4246849429b5e5aa /src/buildtool/execution_api | |
parent | 88c25cccdeda497cb84de59e0a60f15fb3476e91 (diff) | |
download | justbuild-c7e8a8d8c2a068ad2520aa3edf4ccd5bd0c028a0.tar.gz |
BazelCasClient: BatchRead to temporary files.
Diffstat (limited to 'src/buildtool/execution_api')
-rw-r--r-- | src/buildtool/execution_api/remote/bazel/bazel_cas_client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_cas_client.cpp b/src/buildtool/execution_api/remote/bazel/bazel_cas_client.cpp index 93f27ff2..8239b9d7 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_cas_client.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_cas_client.cpp @@ -301,7 +301,7 @@ auto BazelCasClient::BatchReadBlobs( bazel_re::BatchReadBlobsResponse_Response, bazel_re::BatchReadBlobsResponse>( response, - [&back_map]( + [this, &back_map]( std::vector<ArtifactBlob>* v, bazel_re::BatchReadBlobsResponse_Response const& r) { @@ -309,10 +309,11 @@ auto BazelCasClient::BatchReadBlobs( if (not ref.has_value()) { return; } - auto blob = ArtifactBlob::FromMemory( + auto blob = ArtifactBlob::FromTempFile( HashFunction{ref.value()->GetHashType()}, ref.value()->IsTree() ? ObjectType::Tree : ObjectType::File, + temp_space_, r.data()); if (not blob.has_value()) { return; |