replication/driver: envconst for experimental parallel replication

refs #140
refs #302
This commit is contained in:
Christian Schwarz 2020-04-07 23:35:42 +02:00
parent d52acfe10b
commit afab031b7d

View File

@ -355,7 +355,7 @@ func (a *attempt) do(ctx context.Context, prev *attempt) {
// invariant: prevs contains an entry for each unambiguous correspondence
stepQueue := newStepQueue()
defer stepQueue.Start(1)() // TODO parallel replication
defer stepQueue.Start(envconst.Int("ZREPL_REPLICATION_EXPERIMENTAL_REPLICATION_CONCURRENCY", 1))() // TODO parallel replication
var fssesDone sync.WaitGroup
for _, f := range a.fss {
fssesDone.Add(1)