feat(tvix): Implement EnsurePath RPC handler

Missed this one

Fixes: b/62
Change-Id: I6f3bbcd3e2a7db5786283761b57466da33a497f7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1936
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2020-09-06 17:34:29 -04:00 committed by glittershark
parent e2530ceec0
commit 8f4d89e429

View file

@ -336,6 +336,19 @@ class WorkerServiceImpl final : public WorkerService::Service {
__FUNCTION__);
}
Status EnsurePath(grpc::ServerContext* context,
const nix::proto::StorePath* request,
google::protobuf::Empty*) override {
auto path = request->path();
ASSERT_INPUT_STORE_PATH(path);
return HandleExceptions(
[&]() -> Status {
store_->ensurePath(path);
return Status::OK;
},
__FUNCTION__);
}
Status AddTempRoot(grpc::ServerContext*, const nix::proto::StorePath* request,
google::protobuf::Empty*) override {
auto path = request->path();