summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/cas_server.hpp
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2024-01-17 16:42:49 +0100
committerSascha Roloff <sascha.roloff@huawei.com>2024-01-19 18:06:05 +0100
commit399f75c8b63c3214938e03d5d9b532a5dd7a4000 (patch)
treebedf0626534c050469f3aa26ae68d12e8604d150 /src/buildtool/execution_api/execution_service/cas_server.hpp
parentf410e394b48d05e06cf3c5fefe93a91d96c4fbb6 (diff)
downloadjustbuild-399f75c8b63c3214938e03d5d9b532a5dd7a4000.tar.gz
Add tree invariant check for just execute, when uploading trees
Diffstat (limited to 'src/buildtool/execution_api/execution_service/cas_server.hpp')
-rw-r--r--src/buildtool/execution_api/execution_service/cas_server.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/execution_service/cas_server.hpp b/src/buildtool/execution_api/execution_service/cas_server.hpp
index 306c2833..c9f7cff4 100644
--- a/src/buildtool/execution_api/execution_service/cas_server.hpp
+++ b/src/buildtool/execution_api/execution_service/cas_server.hpp
@@ -147,6 +147,10 @@ class CASServiceImpl final
bazel_re::Digest const& computed)
const noexcept -> std::optional<std::string>;
+ [[nodiscard]] auto EnsureTreeInvariant(
+ std::string const& data,
+ std::string const& hash) const noexcept -> std::optional<std::string>;
+
gsl::not_null<Storage const*> storage_ = &Storage::Instance();
Logger logger_{"execution-service"};
};