mirror of
https://github.com/minio/minio.git
synced 2025-09-22 06:01:11 +02:00
fix: incorrect poolID when after decommission adding pools (#21590)
This commit is contained in:
parent
7a80ec1cce
commit
756f3c8142
@ -568,6 +568,7 @@ func newPoolMeta(z *erasureServerPools, prevMeta poolMeta) poolMeta {
|
|||||||
for _, currentPool := range prevMeta.Pools {
|
for _, currentPool := range prevMeta.Pools {
|
||||||
// Preserve any current pool status.
|
// Preserve any current pool status.
|
||||||
if currentPool.CmdLine == pool.endpoints.CmdLine {
|
if currentPool.CmdLine == pool.endpoints.CmdLine {
|
||||||
|
currentPool.ID = idx
|
||||||
newMeta.Pools = append(newMeta.Pools, currentPool)
|
newMeta.Pools = append(newMeta.Pools, currentPool)
|
||||||
skip = true
|
skip = true
|
||||||
break
|
break
|
||||||
|
@ -197,7 +197,7 @@ func Lookup(s config.Config, rootCAs *x509.CertPool) (l Config, err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
host = ldapServer
|
host = ldapServer
|
||||||
}
|
}
|
||||||
|
|
||||||
l.LDAP = ldap.Config{
|
l.LDAP = ldap.Config{
|
||||||
ServerAddr: ldapServer,
|
ServerAddr: ldapServer,
|
||||||
SRVRecordName: getCfgVal(SRVRecordName),
|
SRVRecordName: getCfgVal(SRVRecordName),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user