From 96bb2c7f8790bb54da607d1984f2fd4dd3dcd27e Mon Sep 17 00:00:00 2001 From: pingqiu Date: Fri, 20 Nov 2026 17:51:49 -0800 Subject: [PATCH] fix(storage): preserve warm rate-window reporting --- seaweed-block/core/storage/chunk_precopy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaweed-block/core/storage/chunk_precopy.go b/seaweed-block/core/storage/chunk_precopy.go index a534520da6..f81649ce05 100644 --- a/seaweed-block/core/storage/chunk_precopy.go +++ b/seaweed-block/core/storage/chunk_precopy.go @@ -213,7 +213,7 @@ func (l *chunkLayerImpl) precopyDetach(ctx context.Context, prepare func(context for attempt := 1; attempt <= precopyAttempts; attempt++ { // Measurement rounds still consume the same five-round/60s budget. // Count an admission attempt only with a warm rate window at entry. - if l.precopyEstimate(0, 0).Reason != "samples_unknown" { + if l.precopyEstimate(0, 0).RateSamples >= 3 { warmAttempts++ } else { measurementRounds++