mirror of
https://github.com/minio/minio.git
synced 2025-02-23 03:22:30 -05: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 {
|
||||
globalLocalDrivesMu.Lock()
|
||||
globalLocalDrives = localDrives
|
||||
for _, drive := range localDrives {
|
||||
globalLocalDrivesMap[drive.Endpoint().String()] = drive
|
||||
}
|
||||
globalLocalDrivesMu.Unlock()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user