fix: incorrect poolID when after decommission adding pools (#21590)
Some checks failed
VulnCheck / Analysis (push) Has been cancelled
Lock Threads / action (push) Has been cancelled

This commit is contained in:
jiuker 2025-09-18 19:47:48 +08:00 committed by GitHub
parent 7a80ec1cce
commit 756f3c8142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -568,6 +568,7 @@ func newPoolMeta(z *erasureServerPools, prevMeta poolMeta) poolMeta {
for _, currentPool := range prevMeta.Pools {
// Preserve any current pool status.
if currentPool.CmdLine == pool.endpoints.CmdLine {
currentPool.ID = idx
newMeta.Pools = append(newMeta.Pools, currentPool)
skip = true
break

View File

@ -197,7 +197,7 @@ func Lookup(s config.Config, rootCAs *x509.CertPool) (l Config, err error) {
if err != nil {
host = ldapServer
}
l.LDAP = ldap.Config{
ServerAddr: ldapServer,
SRVRecordName: getCfgVal(SRVRecordName),