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
fix visited checking
Chris Lu2e56407c6b94
diff --git a/weed/filesys/meta_cache/meta_cache_init.go b/weed/filesys/meta_cache/meta_cache_init.goindex 1ca3b16d5e..9af25ae29a 100644--- a/weed/filesys/meta_cache/meta_cache_init.go+++ b/weed/filesys/meta_cache/meta_cache_init.go@@ -17,9 +17,9 @@ func EnsureVisited(mc *MetaCache, client filer_pb.FilerClient, dirPath util.Fullglog.V(4).Infof("ReadDirAllEntries %s ...", path)util.Retry("ReadDirAllEntries", func() error {- err = filer_pb.ReadDirAllEntries(client, dirPath, "", func(pbEntry *filer_pb.Entry, isLast bool) error {- entry := filer.FromPbEntry(string(dirPath), pbEntry)- if IsHiddenSystemEntry(string(dirPath), entry.Name()) {+ err = filer_pb.ReadDirAllEntries(client, path, "", func(pbEntry *filer_pb.Entry, isLast bool) error {+ entry := filer.FromPbEntry(string(path), pbEntry)+ if IsHiddenSystemEntry(string(path), entry.Name()) {return nil}if err := mc.doInsertEntry(context.Background(), entry); err != nil {@@ -35,7 +35,7 @@ func EnsureVisited(mc *MetaCache, client filer_pb.FilerClient, dirPath util.Full})if err != nil {- err = fmt.Errorf("list %s: %v", dirPath, err)+ err = fmt.Errorf("list %s: %v", path, err)}return