From 720963e2d3f4e7587398b315d42ad275378f860e Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 4 Jan 2024 11:55:36 +0100 Subject: just-mr distdir: Improved handling of absent root If root is marked absent and we're not asked to fetch absent, we can compute the resulting distdir root tree in-memory, as we have all the information. Otherwise, i.e., if we actually need to have the archives locally, we first check if the remote serve can provide them in the remote CAS before continuing as before to fetch the listed archives one at a time. --- src/other_tools/root_maps/distdir_git_map.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/other_tools/root_maps/distdir_git_map.hpp') diff --git a/src/other_tools/root_maps/distdir_git_map.hpp b/src/other_tools/root_maps/distdir_git_map.hpp index c2f03e08..df2b6064 100644 --- a/src/other_tools/root_maps/distdir_git_map.hpp +++ b/src/other_tools/root_maps/distdir_git_map.hpp @@ -22,6 +22,7 @@ #include "gsl/gsl" #include "nlohmann/json.hpp" +#include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/other_tools/ops_maps/content_cas_map.hpp" #include "src/other_tools/ops_maps/import_to_git_map.hpp" @@ -50,6 +51,9 @@ using DistdirGitMap = gsl::not_null const& content_cas_map, gsl::not_null const& import_to_git_map, gsl::not_null const& critical_git_op_map, + bool serve_api_exists, + IExecutionApi* local_api, + IExecutionApi* remote_api, std::size_t jobs) -> DistdirGitMap; namespace std { -- cgit v1.2.3