From 3df0e11ad330859c82ef0aa6c2f2215a51819c1a Mon Sep 17 00:00:00 2001 From: lakeland1990 <54886989+lakeland1990@users.noreply.github.com> Date: Thu, 19 Oct 2023 00:06:56 +0800 Subject: [PATCH] remove compare to fix #4668 issue (#4924) --- weed/filer/filerstore_wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/filerstore_wrapper.go b/weed/filer/filerstore_wrapper.go index 0eecdd6cb..cc3e58363 100644 --- a/weed/filer/filerstore_wrapper.go +++ b/weed/filer/filerstore_wrapper.go @@ -303,7 +303,7 @@ func (fsw *FilerStoreWrapper) prefixFilterEntries(ctx context.Context, dirPath u } } } - if count < limit && lastFileName <= prefix && len(notPrefixed) == int(limit) { + if count < limit && lastFileName <= prefix { notPrefixed = notPrefixed[:0] lastFileName, err = actualStore.ListDirectoryEntries(ctx, dirPath, lastFileName, false, limit, func(entry *Entry) bool { notPrefixed = append(notPrefixed, entry)