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>2020-02-14 06:37:50 +0300
committerJohn Cai <jcai@gitlab.com>2020-02-14 06:58:52 +0300
commiteb9bc49a44344c1cabff91f1a5f56ece88c4cf7a (patch)
tree2832ed8378fce64dc1e410fbb0a55c0ead95d8f0
parentbed86a2492236533e50c8699ebb1a3668d4db108 (diff)
pass in virtual storage name to repl manager
-rw-r--r--changelogs/unreleased/jc-do-not-hardcode-virtual-storage.yml5
-rw-r--r--cmd/praefect/main.go2
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/jc-do-not-hardcode-virtual-storage.yml b/changelogs/unreleased/jc-do-not-hardcode-virtual-storage.yml
new file mode 100644
index 000000000..31a58c2dd
--- /dev/null
+++ b/changelogs/unreleased/jc-do-not-hardcode-virtual-storage.yml
@@ -0,0 +1,5 @@
+---
+title: Pass in virtual storage name to repl manager
+merge_request: 1831
+author:
+type: fixed
diff --git a/cmd/praefect/main.go b/cmd/praefect/main.go
index 31b219b70..2ec963472 100644
--- a/cmd/praefect/main.go
+++ b/cmd/praefect/main.go
@@ -150,7 +150,7 @@ func run(cfgs []starter.Config, conf config.Config) error {
ds = datastore.NewInMemory(conf)
coordinator = praefect.NewCoordinator(logger, ds, nodeManager, conf, protoregistry.GitalyProtoFileDescriptors...)
repl = praefect.NewReplMgr(
- "default",
+ conf.VirtualStorages[0].Name,
logger,
ds,
nodeManager,