Allow rebalance start when it's stopped/completed (#20009)

This commit is contained in:
Krishnan Parthasarathi
2024-06-27 17:22:30 -07:00
committed by GitHub
parent 722118386d
commit 154fcaeb56
2 changed files with 10 additions and 2 deletions

View File

@@ -374,6 +374,7 @@ func (a adminAPIHandlers) RebalanceStop(w http.ResponseWriter, r *http.Request)
globalNotificationSys.StopRebalance(r.Context())
writeSuccessResponseHeadersOnly(w)
adminLogIf(ctx, pools.saveRebalanceStats(GlobalContext, 0, rebalSaveStoppedAt))
globalNotificationSys.LoadRebalanceMeta(ctx, false)
}
func proxyDecommissionRequest(ctx context.Context, defaultEndPoint Endpoint, w http.ResponseWriter, r *http.Request) (proxy bool) {