Skip to content
Snippets Groups Projects
Unverified Commit c9f5635a authored by Janardhan Reddy's avatar Janardhan Reddy
Browse files

remove group zero from backup

parent 065257a6
No related branches found
No related tags found
No related merge requests found
...@@ -415,12 +415,15 @@ func BackupOverNetwork(ctx context.Context) error { ...@@ -415,12 +415,15 @@ func BackupOverNetwork(ctx context.Context) error {
// Let's first collect all groups. // Let's first collect all groups.
gids := groups().KnownGroups() gids := groups().KnownGroups()
ch := make(chan *workerp.BackupPayload, len(gids)) for i, gid := range gids {
for _, gid := range gids {
// Nothing is stored in group zero
if gid == 0 { if gid == 0 {
continue gids[i] = gids[len(gids)-1]
gids = gids[:len(gids)-1]
} }
}
ch := make(chan *workerp.BackupPayload, len(gids))
for _, gid := range gids {
go func(group uint32) { go func(group uint32) {
reqId := uint64(rand.Int63()) reqId := uint64(rand.Int63())
ch <- handleBackupForGroup(ctx, reqId, group) ch <- handleBackupForGroup(ctx, reqId, group)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment