From 38d059b0aefeb6181c07fcb8d73286a258d72a5d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 29 May 2024 13:12:44 -0700 Subject: [PATCH] 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. --- cmd/erasure-server-pool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/erasure-server-pool.go b/cmd/erasure-server-pool.go index d7c372427..dfd4799cc 100644 --- a/cmd/erasure-server-pool.go +++ b/cmd/erasure-server-pool.go @@ -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() }