aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Borzykh <sample@fastmail.com>2024-03-31 00:47:00 +0300
committerGitHub <noreply@github.com>2024-03-30 14:47:00 -0700
commit829c0da3816e798261437c8cf6ceba3ae26b91b5 (patch)
treecdb3ec083d38d7be1d2d1068ad09293dfd6c5ebf
parentf9ec92dd830f03e12fae281684a514d0306cda75 (diff)
downloadseaweedfs-829c0da3816e798261437c8cf6ceba3ae26b91b5.tar.xz
seaweedfs-829c0da3816e798261437c8cf6ceba3ae26b91b5.zip
fix: adjust condition in prefixFilterEntries prevent infinite loop (#5440)
-rw-r--r--weed/filer/filerstore_wrapper.go2
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)