diff options
| author | lakeland1990 <54886989+lakeland1990@users.noreply.github.com> | 2023-10-19 00:06:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-18 09:06:56 -0700 |
| commit | 3df0e11ad330859c82ef0aa6c2f2215a51819c1a (patch) | |
| tree | d393fb0dcb7a513eb7ebf4ce2543b2f1c2c9c2e2 | |
| parent | 117fbba5bf1947a280376e688d24b3a9b1c589c9 (diff) | |
| download | seaweedfs-3df0e11ad330859c82ef0aa6c2f2215a51819c1a.tar.xz seaweedfs-3df0e11ad330859c82ef0aa6c2f2215a51819c1a.zip | |
remove compare to fix #4668 issue (#4924)
| -rw-r--r-- | weed/filer/filerstore_wrapper.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
