Browse Source

remove compare to fix #4668 issue (#4924)

pull/4928/head
lakeland1990 1 year ago
committed by GitHub
parent
commit
3df0e11ad3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/filer/filerstore_wrapper.go

2
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] notPrefixed = notPrefixed[:0]
lastFileName, err = actualStore.ListDirectoryEntries(ctx, dirPath, lastFileName, false, limit, func(entry *Entry) bool { lastFileName, err = actualStore.ListDirectoryEntries(ctx, dirPath, lastFileName, false, limit, func(entry *Entry) bool {
notPrefixed = append(notPrefixed, entry) notPrefixed = append(notPrefixed, entry)

Loading…
Cancel
Save