diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-30 15:18:35 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-07 14:58:04 +0100 |
commit | 477c7d5e496b8eb5113b3b51f7152e05eae51fd7 (patch) | |
tree | dc66932c55fb9e7fd2353a6920bf1b0487209641 /src/other_tools/root_maps | |
parent | 0a8dbe086a23bbb905514007d21e2e04cdaae1e8 (diff) | |
download | justbuild-477c7d5e496b8eb5113b3b51f7152e05eae51fd7.tar.gz |
IExecutionApi: Rename IsAvailable to GetMissingDigests
Diffstat (limited to 'src/other_tools/root_maps')
-rw-r--r-- | src/other_tools/root_maps/distdir_git_map.cpp | 6 | ||||
-rw-r--r-- | src/other_tools/root_maps/tree_id_git_map.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/other_tools/root_maps/distdir_git_map.cpp b/src/other_tools/root_maps/distdir_git_map.cpp index 44213cd9..02a935a4 100644 --- a/src/other_tools/root_maps/distdir_git_map.cpp +++ b/src/other_tools/root_maps/distdir_git_map.cpp @@ -416,7 +416,7 @@ auto CreateDistdirGitMap( } // try to supply the serve endpoint with the tree via the // remote CAS - if (digest and remote_api->IsAvailable({*digest})) { + if (digest and remote_api->IsAvailable(*digest)) { // tell serve to set up the root from the remote CAS // tree if (serve->GetTreeFromRemote(*digest)) { @@ -436,7 +436,7 @@ auto CreateDistdirGitMap( } // check if we have the tree in local CAS; if yes, upload it // to remote for the serve endpoint to find it - if (digest and local_api->IsAvailable({*digest})) { + if (digest and local_api->IsAvailable(*digest)) { if (not local_api->RetrieveToCas( {Artifact::ObjectInfo{ .digest = *digest, @@ -481,7 +481,7 @@ auto CreateDistdirGitMap( // if the root is not-absent, the order of checks is different; // first, look in the local CAS - if (digest and local_api->IsAvailable({*digest})) { + if (digest and local_api->IsAvailable(*digest)) { ImportFromCASAndSetRoot(key, *native_storage_config, *native_storage, diff --git a/src/other_tools/root_maps/tree_id_git_map.cpp b/src/other_tools/root_maps/tree_id_git_map.cpp index 9968053a..f6fac1d0 100644 --- a/src/other_tools/root_maps/tree_id_git_map.cpp +++ b/src/other_tools/root_maps/tree_id_git_map.cpp @@ -229,7 +229,7 @@ auto CreateTreeIdGitMap( } // check if tree in already in remote CAS auto const digest = ArtifactDigest{key.tree_info.tree_hash, 0}; - if (remote_api->IsAvailable({digest})) { + if (remote_api->IsAvailable(digest)) { // tell serve to set up the root from the remote CAS tree; if (serve->GetTreeFromRemote(digest)) { // set workspace root as absent |