fix(storage): preserve warm rate-window reporting

This commit is contained in:
pingqiu committed 2026-11-20 17:51:49 -08:00
1 parent b6a3f5840c
commit 96bb2c7f87
1 file changed
+1 -1
+1 -1
View File
@@ -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++