Skip to content

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.

mount: do not mark meta_cache when there is an err

Robert Coelho05602167f4b9
diff --git a/weed/mount/meta_cache/meta_cache_init.go b/weed/mount/meta_cache/meta_cache_init.go
index 679cb953d1..4ef1757d18 100644
--- a/weed/mount/meta_cache/meta_cache_init.go
+++ b/weed/mount/meta_cache/meta_cache_init.go
@@ -68,8 +68,9 @@ func doEnsureVisited(mc *MetaCache, client filer_pb.FilerClient, path util.FullP
if err != nil {
err = fmt.Errorf("list %s: %v", path, err)
+ } else {
+ mc.markCachedFn(path)
}
- mc.markCachedFn(path)
return err
}