From b2da54afba3eb06978ab4a6ff1be575881a5cda5 Mon Sep 17 00:00:00 2001 From: Dmitriy Pavlov Date: Wed, 29 Oct 2025 13:10:50 +0200 Subject: [PATCH] Update weed/filer/filer_deletion.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- weed/filer/filer_deletion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filer/filer_deletion.go b/weed/filer/filer_deletion.go index e50321817..8804b731f 100644 --- a/weed/filer/filer_deletion.go +++ b/weed/filer/filer_deletion.go @@ -96,8 +96,8 @@ func (q *DeletionRetryQueue) GetReadyItems(maxItems int) []*DeletionRetryItem { // Max attempts reached, log and discard 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) } }