diff options
| author | Nikita Borzykh <sample@fastmail.com> | 2024-03-31 00:47:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-30 14:47:00 -0700 |
| commit | 829c0da3816e798261437c8cf6ceba3ae26b91b5 (patch) | |
| tree | cdb3ec083d38d7be1d2d1068ad09293dfd6c5ebf | |
| parent | f9ec92dd830f03e12fae281684a514d0306cda75 (diff) | |
| download | seaweedfs-829c0da3816e798261437c8cf6ceba3ae26b91b5.tar.xz seaweedfs-829c0da3816e798261437c8cf6ceba3ae26b91b5.zip | |
fix: adjust condition in prefixFilterEntries prevent infinite loop (#5440)
| -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 cc3e58363..986dadb77 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 { + 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) |
