mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
fix(storage): preserve warm rate-window reporting
This commit is contained in:
1 parent
b6a3f5840c
commit
96bb2c7f87
1 file changed
+1
-1
@@ -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++
|
||||
|
||||
Reference in new issue
Block a user