remove compare to fix #4668 issue (#4924)

This commit is contained in:
lakeland1990 2023-10-19 00:06:56 +08:00 committed by GitHub
parent 117fbba5bf
commit 3df0e11ad3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)