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
path: root/cmd
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2021-09-29 17:03:22 +0300
committerToon Claes <toon@gitlab.com>2021-09-29 17:03:22 +0300
commit0bf16fc55108fa4ff170ed8a77f104d99f359151 (patch)
tree0293ec385f5f11f7df721972fad413a1492bfe99 /cmd
parent03c0d52ff9c24c85cf00f7af77a5e5cb78557801 (diff)
parent134d9413baff9bbed84406b6a06d2f28ee16ffd0 (diff)
Merge branch 'smh-test-with-per-repo' into 'master'
Use PerRepositoryElector in test-with-praefect See merge request gitlab-org/gitaly!3914
Diffstat (limited to 'cmd')
-rw-r--r--cmd/praefect/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/praefect/main.go b/cmd/praefect/main.go
index ed908551c..5a6c54d0c 100644
--- a/cmd/praefect/main.go
+++ b/cmd/praefect/main.go
@@ -300,6 +300,10 @@ func run(cfgs []starter.Config, conf config.Config) error {
}()
healthChecker = hm
+ // Wait for the first health check to complete so the Praefect doesn't start serving RPC
+ // before the router is ready with the health status of the nodes.
+ <-hm.Updated()
+
elector := nodes.NewPerRepositoryElector(db)
primaryGetter = elector