diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-13 12:07:04 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-13 12:14:53 +0100 |
commit | 1e2e0153ec5088a6e53cab12c01ffb561c78db02 (patch) | |
tree | a50a59ce012d18cc8a3ff78a503b86da1b7c8b42 /src | |
parent | 4a9d15ec0340516b5a017540d1d5f0eb9a95dbaa (diff) | |
download | justbuild-1e2e0153ec5088a6e53cab12c01ffb561c78db02.tar.gz |
BytestreamServer: also use the correct interface function for tmp dirs
... so that any updates of the local-build-root layout are correctly
taken into account. In particular, this change also moves the temporary
directory under the emphemeral root, allowing more quick clean up.
Co-authored-by: Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/execution_api/execution_service/bytestream_server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/execution_service/bytestream_server.cpp b/src/buildtool/execution_api/execution_service/bytestream_server.cpp index 69bac9a0..09a46110 100644 --- a/src/buildtool/execution_api/execution_service/bytestream_server.cpp +++ b/src/buildtool/execution_api/execution_service/bytestream_server.cpp @@ -129,8 +129,7 @@ auto BytestreamServiceImpl::Write( logger_.Emit(LogLevel::Error, str); return grpc::Status{grpc::StatusCode::INTERNAL, str}; } - auto tmp_dir = TmpDir::Create(StorageConfig::GenerationCacheRoot(0) / - "execution-service"); + auto tmp_dir = StorageConfig::CreateTypedTmpDir("execution-service"); if (!tmp_dir) { return ::grpc::Status{::grpc::StatusCode::INTERNAL, "could not create TmpDir"}; |