mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
decom: Fix a typo in routing decommissioning requests (#17435)
A specific node should do the decommissioning task, however routing the start decommissioning to that node was not working properly. Co-authored-by: Anis Elleuch <anis@min.io>
This commit is contained in:
@@ -95,7 +95,7 @@ func (a adminAPIHandlers) StartDecommission(w http.ResponseWriter, r *http.Reque
|
|||||||
poolIndices = append(poolIndices, idx)
|
poolIndices = append(poolIndices, idx)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(poolIndices) > 0 && globalEndpoints[poolIndices[0]].Endpoints[0].IsLocal {
|
if len(poolIndices) > 0 && !globalEndpoints[poolIndices[0]].Endpoints[0].IsLocal {
|
||||||
ep := globalEndpoints[poolIndices[0]].Endpoints[0]
|
ep := globalEndpoints[poolIndices[0]].Endpoints[0]
|
||||||
for nodeIdx, proxyEp := range globalProxyEndpoints {
|
for nodeIdx, proxyEp := range globalProxyEndpoints {
|
||||||
if proxyEp.Endpoint.Host == ep.Host {
|
if proxyEp.Endpoint.Host == ep.Host {
|
||||||
|
|||||||
Reference in New Issue
Block a user