Browse Source
Update weed/filer/filer_deletion.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7402/head
Dmitriy Pavlov
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
weed/filer/filer_deletion.go
|
|
@ -96,8 +96,8 @@ func (q *DeletionRetryQueue) GetReadyItems(maxItems int) []*DeletionRetryItem { |
|
|
// Max attempts reached, log and discard
|
|
|
// Max attempts reached, log and discard
|
|
|
glog.Warningf("max retry attempts (%d) reached for %s, last error: %s", MaxRetryAttempts, item.FileId, item.LastError) |
|
|
glog.Warningf("max retry attempts (%d) reached for %s, last error: %s", MaxRetryAttempts, item.FileId, item.LastError) |
|
|
} |
|
|
} |
|
|
} else if !item.NextRetryAt.Before(now) { |
|
|
|
|
|
// Keep items that are not ready yet
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
// Keep items that are not ready yet or if the batch is full
|
|
|
remainingItems = append(remainingItems, item) |
|
|
remainingItems = append(remainingItems, item) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|