Skip to content

Commit

Permalink
fixed bug with backup fan-out code (dgraph-io#2973)
Browse files Browse the repository at this point in the history
  • Loading branch information
srfrog authored and dna2github committed Jul 19, 2019
1 parent 9357f47 commit 9e8938b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker/backup_ee.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ func BackupOverNetwork(pctx context.Context, dst string) error {
// If we receive any failures, we cancel the process.
errCh := make(chan error, 1)
for _, gid := range gids {
req.GroupId = gid
go func() {
go func(gid uint32) {
req.GroupId = gid
errCh <- backupGroup(ctx, req)
}()
}(gid)
}

for i := 0; i < len(gids); i++ {
Expand Down

0 comments on commit 9e8938b

Please sign in to comment.