Commit dccafb26 authored by John Cai's avatar John Cai

Add EvictBatchCache rpc and messages

parent f90f9782
Pipeline #57526424 passed with stage
in 1 minute and 49 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