From 84e1580a47932db17aed4f6c1beebc06ee15e172 Mon Sep 17 00:00:00 2001 From: Feng Ruohang Date: Wed, 2 Sep 2026 21:23:30 +0800 Subject: [PATCH] fix: clear the load-failure bit when GetConfig reloads a bucket on demand A successful on-demand load makes the bucket resident, so the failure recorded by an earlier startup or refresh no longer applies. Clearing it here keeps the set's invariant exact instead of waiting for the next refresh. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01PvgysXDmhPBBimCReYtA8q Signed-off-by: Feng Ruohang --- cmd/bucket-metadata-sys.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/bucket-metadata-sys.go b/cmd/bucket-metadata-sys.go index 1f7a0921c..8f60c6df9 100644 --- a/cmd/bucket-metadata-sys.go +++ b/cmd/bucket-metadata-sys.go @@ -595,6 +595,7 @@ func (sys *BucketMetadataSys) GetConfig(ctx context.Context, bucket string) (met } sys.Lock() sys.metadataMap[bucket] = meta + sys.clearLoadFailure(bucket) sys.Unlock() return meta, true, nil