Skip to content

Commit

Permalink
Merge pull request lxc#1262 from gibmat/parallel-evacuate-restore
Browse files Browse the repository at this point in the history
Run cluster evacuate and restore in parallel
  • Loading branch information
stgraber authored Oct 2, 2024
2 parents d6fb2a5 + e6e7e0a commit f152532
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 166 deletions.
2 changes: 1 addition & 1 deletion cmd/incusd/api_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2894,7 +2894,7 @@ func clusterNodeStatePost(d *Daemon, r *http.Request) response.Response {
}

run := func(op *operations.Operation) error {
return evacuateClusterMember(context.Background(), s, d.gateway, op, name, req.Mode, stopFunc, migrateFunc)
return evacuateClusterMember(context.Background(), s, op, name, req.Mode, stopFunc, migrateFunc)
}

op, err := operations.OperationCreate(s, "", operations.OperationClassTask, operationtype.ClusterMemberEvacuate, nil, nil, run, nil, nil, r)
Expand Down
Loading

0 comments on commit f152532

Please sign in to comment.