summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/ac_server.cpp
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-02-15 16:17:11 +0100
committerAlberto Sartori <alberto.sartori@huawei.com>2023-02-15 16:41:10 +0100
commitdfcd8d353ff8e8920d9ad8e1e56f79f5a54b73ea (patch)
tree9b5b65553de653e969f40d6773f422ee3846c183 /src/buildtool/execution_api/execution_service/ac_server.cpp
parentddf097f7a1c1bb438f1fc97150a263cf28be9293 (diff)
downloadjustbuild-dfcd8d353ff8e8920d9ad8e1e56f79f5a54b73ea.tar.gz
just-execute: report un-tagged hashes
Diffstat (limited to 'src/buildtool/execution_api/execution_service/ac_server.cpp')
-rw-r--r--src/buildtool/execution_api/execution_service/ac_server.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/execution_service/ac_server.cpp b/src/buildtool/execution_api/execution_service/ac_server.cpp
index 1b5b9470..40407711 100644
--- a/src/buildtool/execution_api/execution_service/ac_server.cpp
+++ b/src/buildtool/execution_api/execution_service/ac_server.cpp
@@ -15,6 +15,7 @@
#include "src/buildtool/execution_api/execution_service/ac_server.hpp"
#include "fmt/format.h"
+#include "src/buildtool/compatibility/native_support.hpp"
#include "src/buildtool/execution_api/local/garbage_collector.hpp"
auto ActionCacheServiceImpl::GetActionResult(
@@ -25,7 +26,7 @@ auto ActionCacheServiceImpl::GetActionResult(
-> ::grpc::Status {
logger_.Emit(LogLevel::Trace,
"GetActionResult: {}",
- request->action_digest().hash());
+ NativeSupport::Unprefix(request->action_digest().hash()));
auto lock = GarbageCollector::SharedLock();
if (!lock) {
auto str = fmt::format("Could not acquire SharedLock");
@@ -34,9 +35,10 @@ auto ActionCacheServiceImpl::GetActionResult(
}
auto x = ac_.CachedResult(request->action_digest());
if (!x) {
- return grpc::Status{
- grpc::StatusCode::NOT_FOUND,
- fmt::format("{} missing from AC", request->action_digest().hash())};
+ return grpc::Status{grpc::StatusCode::NOT_FOUND,
+ fmt::format("{} missing from AC",
+ NativeSupport::Unprefix(
+ request->action_digest().hash()))};
}
*response = *x;
return ::grpc::Status::OK;