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
clean up cache on exit
chrislu37e8fce84142
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.goindex 7ee9a10eaf..2a8ecd2356 100644--- a/weed/filesys/wfs.go+++ b/weed/filesys/wfs.go@@ -125,6 +125,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {})grace.OnInterrupt(func() {wfs.metaCache.Shutdown()+ os.RemoveAll(option.getUniqueCacheDir())})wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs, id: 1}diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.goindex d3342a8deb..11958c39e5 100644--- a/weed/mount/weedfs.go+++ b/weed/mount/weedfs.go@@ -99,6 +99,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {})grace.OnInterrupt(func() {wfs.metaCache.Shutdown()+ os.RemoveAll(option.getUniqueCacheDir())})if wfs.option.ConcurrentWriters > 0 {