SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
set large limit for "weed filer.export" directory listing
Chris Lub7a375f5aab7
diff --git a/weed/command/filer_export.go b/weed/command/filer_export.goindex d57acedc3c..9bd0f3014e 100644--- a/weed/command/filer_export.go+++ b/weed/command/filer_export.go@@ -29,6 +29,7 @@ var (// filerExportOutputFile = cmdFilerExport.Flag.String("output", "", "the output file. If empty, only list out the directory tree")filerExportSourceStore = cmdFilerExport.Flag.String("sourceStore", "", "the source store name in filer.toml")filerExportTargetStore = cmdFilerExport.Flag.String("targetStore", "", "the target store name in filer.toml")+ dirListLimit = cmdFilerExport.Flag.Int("dirListLimit", 100000, "limit directory list size"))type statistics struct {@@ -99,7 +100,7 @@ func runFilerExport(cmd *Command, args []string) bool {func doTraverse(stat *statistics, filerStore filer2.FilerStore, parentPath filer2.FullPath, level int, fn func(level int, entry *filer2.Entry) error) {- limit := 1000+ limit := *dirListLimitlastEntryName := ""for {entries, err := filerStore.ListDirectoryEntries(parentPath, lastEntryName, false, limit)