Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-12-10 04:15:07 +0300
committerJohn Cai <jcai@gitlab.com>2020-03-02 20:09:27 +0300
commit7e3381ec0d27059f0fb4e543c5ff10a80831fb4b (patch)
tree3c7b4acb80bafeb22b45cca1416b0ad11305fd08 /proto/praefect.proto
parent0f65bca8b7b172afa1c22e31a74c1e1d8480025d (diff)
Change ListRepositories RPC to RepositoryReplicas
Instead of having an RPC return all repositories and their checksums, have an RPC that takes a repository as its argument and returns checksums of the primary and replicas.
Diffstat (limited to 'proto/praefect.proto')
-rw-r--r--proto/praefect.proto12
1 files changed, 7 insertions, 5 deletions
diff --git a/proto/praefect.proto b/proto/praefect.proto
index d0ba4d8cb..9ce51d72b 100644
--- a/proto/praefect.proto
+++ b/proto/praefect.proto
@@ -6,8 +6,8 @@ option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb";
import "shared.proto";
-service InfoService {
- rpc ListRepositories(ListRepositoriesRequest) returns (stream ListRepositoriesResponse) {
+service PraefectInfoService {
+ rpc RepositoryReplicas(RepositoryReplicasRequest) returns (RepositoryReplicasResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: SERVER
@@ -15,11 +15,13 @@ service InfoService {
}
}
-message ListRepositoriesRequest{}
+message RepositoryReplicasRequest{
+ Repository repository = 1;
+}
-message ListRepositoriesResponse{
+message RepositoryReplicasResponse{
message RepositoryDetails {
- Repository repository = 1;
+ Repository repository = 1;
string checksum = 2;
};