diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2024-01-17 16:42:49 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2024-01-19 18:06:05 +0100 |
commit | 399f75c8b63c3214938e03d5d9b532a5dd7a4000 (patch) | |
tree | bedf0626534c050469f3aa26ae68d12e8604d150 /src/buildtool/execution_api/execution_service/cas_server.hpp | |
parent | f410e394b48d05e06cf3c5fefe93a91d96c4fbb6 (diff) | |
download | justbuild-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.hpp | 4 |
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"}; }; |