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:
authorSami Hiltunen <shiltunen@gitlab.com>2020-11-24 18:44:37 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2020-11-24 18:44:37 +0300
commit3a209a39a56ea65cf8a02717c6d6cc0efb6e5287 (patch)
tree36b9c88d9560e68ee43a7e1e43f6cbe607904ca8 /proto/praefect.proto
parent8a3067f8ad7ccc574bc73c27447dffb6131a0f3a (diff)
print out host assignments in `praefect dataloss`
This commit prints out host node assignments in `praefect dataloss`. This allows us to support variable replication factor in `dataloss` and only report assigned nodes as outdated, since unassigned nodes are not expected to contain a given repository. While the piping is laid down to print the assignment status, every node is still considered assigned as the `dataloss` still doesn't support variable replication factor or repository specific primaries.
Diffstat (limited to 'proto/praefect.proto')
-rw-r--r--proto/praefect.proto2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/praefect.proto b/proto/praefect.proto
index fab6cedcb..5d2c05970 100644
--- a/proto/praefect.proto
+++ b/proto/praefect.proto
@@ -50,6 +50,8 @@ message DatalossCheckResponse {
string name = 1;
// behind_by indicates how many generations this storage is behind.
int64 behind_by = 2;
+ // assigned indicates whether the storage is assigned to host the repository.
+ bool assigned = 3;
}
// relative path of the repository with outdated replicas