mirror of
https://github.com/minio/minio.git
synced 2025-02-24 03:49:12 -05: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:
parent
d8e6e76e89
commit
a2aed12dcd
@ -95,7 +95,7 @@ func (a adminAPIHandlers) StartDecommission(w http.ResponseWriter, r *http.Reque
|
||||
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]
|
||||
for nodeIdx, proxyEp := range globalProxyEndpoints {
|
||||
if proxyEp.Endpoint.Host == ep.Host {
|
||||
|
Loading…
x
Reference in New Issue
Block a user