mirror of
https://github.com/minio/minio
synced 2024-10-15 04:12:45 +00:00
fix: single node multi-drive must register local drives properly (#19832)
since #19688 there was a regression introduced during drive lookups for single node multi-drive setups, drive replacement would not work correctly without this PR.
This commit is contained in:
parent
bd4eeb4522
commit
38d059b0ae
|
@ -165,6 +165,9 @@ func newErasureServerPools(ctx context.Context, endpointServerPools EndpointServ
|
||||||
if !globalIsDistErasure {
|
if !globalIsDistErasure {
|
||||||
globalLocalDrivesMu.Lock()
|
globalLocalDrivesMu.Lock()
|
||||||
globalLocalDrives = localDrives
|
globalLocalDrives = localDrives
|
||||||
|
for _, drive := range localDrives {
|
||||||
|
globalLocalDrivesMap[drive.Endpoint().String()] = drive
|
||||||
|
}
|
||||||
globalLocalDrivesMu.Unlock()
|
globalLocalDrivesMu.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue