From 1e2e0153ec5088a6e53cab12c01ffb561c78db02 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 13 Mar 2024 12:07:04 +0100 Subject: 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 --- src/buildtool/execution_api/execution_service/bytestream_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/bytestream_server.cpp') 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"}; -- cgit v1.2.3