aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-10-27 23:45:48 -0700
committerChris Lu <chris.lu@gmail.com>2021-10-27 23:45:48 -0700
commit900e888695c8058d1a97a2314b3dfabc6942f463 (patch)
tree4478e5f1548650bfbc3bbbf408ad236fe68e0a12
parent3eeaffeadd9bcff0148d0b1c860ea4ff03e82904 (diff)
downloadseaweedfs-900e888695c8058d1a97a2314b3dfabc6942f463.tar.xz
seaweedfs-900e888695c8058d1a97a2314b3dfabc6942f463.zip
filer: avoid possible prefixed pagination loop on unsupported filer stores
-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 705f6635b..47b5036f7 100644
--- a/weed/filer/filerstore_wrapper.go
+++ b/weed/filer/filerstore_wrapper.go
@@ -296,7 +296,7 @@ func (fsw *FilerStoreWrapper) prefixFilterEntries(ctx context.Context, dirPath u
}
if count < limit {
notPrefixed = notPrefixed[:0]
- _, 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)
return true
})