fix(api): wake 与回档/备份/改文件按服务器互斥
This commit is contained in:
27 files changed
+1300
-36
No files matched your search
@@ -56,8 +56,10 @@ func (a *API) handleWake(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// Refused with 409 maintenance_in_progress while a restore, backup or file
|
||||
// write holds the world volume: starting on a half-written world corrupts it.
|
||||
if err := a.Cluster.SetDesiredState(r.Context(), name, v1alpha1.DesiredRunning); err != nil {
|
||||
writeError(w, r, err)
|
||||
a.writeLookupError(w, r, err)
|
||||
return
|
||||
}
|
||||
// The wake actually flipped, so consume the per-server cooldown only now: a 503
|
||||
|
||||
Reference in new issue
Block a user