From 89a630cc609cf72c829ec6bffaad978223f22387 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 12 Jan 2023 11:03:16 +0100 Subject: Just-MR: Extend ops and root maps keys with fields needed in progress reporting In order to only report actual work, the name of the repository for which work is actually done needs to be known to certain AsyncMaps used by just-mr. Also, fetches not originating in a distdir repo checkout need to be counted additionally, so an additional flag was needed for the content_cas_map. --- src/other_tools/root_maps/distdir_git_map.hpp | 2 ++ 1 file changed, 2 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 8afeb3d9..8f7796e3 100644 --- a/src/other_tools/root_maps/distdir_git_map.hpp +++ b/src/other_tools/root_maps/distdir_git_map.hpp @@ -23,6 +23,8 @@ struct DistdirInfo { std::string content_id; /* key */ std::shared_ptr> content_list; std::shared_ptr> repos_to_fetch; + // name of repository for which work is done; used in progress reporting + std::string origin; [[nodiscard]] auto operator==(const DistdirInfo& other) const noexcept -> bool { -- cgit v1.2.3