Commit ab9180d4 authored by Paul Okstad's avatar Paul Okstad

Merge branch 'jc-add-evict-batch-cache' into 'master'

Add EvictBatchCache rpc and messages

See merge request !295
parents f90f9782 dccafb26
Pipeline #57617908 passed with stages
in 1 minute and 44 seconds
......@@ -10,6 +10,10 @@ service CleanupService {
rpc ApplyBfgObjectMap(stream ApplyBfgObjectMapRequest) returns (ApplyBfgObjectMapResponse) {
option (op_type).op = MUTATOR;
}
rpc CloseSession(CloseSessionRequest) returns (CloseSessionResponse) {
option (op_type).op = MUTATOR;
}
}
message ApplyBfgObjectMapRequest {
......@@ -21,3 +25,9 @@ message ApplyBfgObjectMapRequest {
}
message ApplyBfgObjectMapResponse {}
message CloseSessionRequest{
string session_id = 1;
}
message CloseSessionResponse{}
This diff is collapsed.
......@@ -11,9 +11,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
end
add_message "gitaly.ApplyBfgObjectMapResponse" do
end
add_message "gitaly.CloseSessionRequest" do
optional :session_id, :string, 1
end
add_message "gitaly.CloseSessionResponse" do
end
end
module Gitaly
ApplyBfgObjectMapRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyBfgObjectMapRequest").msgclass
ApplyBfgObjectMapResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyBfgObjectMapResponse").msgclass
CloseSessionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CloseSessionRequest").msgclass
CloseSessionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CloseSessionResponse").msgclass
end
......@@ -15,6 +15,7 @@ module Gitaly
self.service_name = 'gitaly.CleanupService'
rpc :ApplyBfgObjectMap, stream(ApplyBfgObjectMapRequest), ApplyBfgObjectMapResponse
rpc :CloseSession, CloseSessionRequest, CloseSessionResponse
end
Stub = Service.rpc_stub_class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment