mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-12 14:58:44 +01:00
clean up cache on exit
This commit is contained in:
1 parent
d4dc00471a
commit
37e8fce841
2 files changed
+2
No files matched your search
@@ -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}
|
||||
|
||||
@@ -99,6 +99,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
|
||||
})
|
||||
grace.OnInterrupt(func() {
|
||||
wfs.metaCache.Shutdown()
|
||||
os.RemoveAll(option.getUniqueCacheDir())
|
||||
})
|
||||
|
||||
if wfs.option.ConcurrentWriters > 0 {
|
||||
|
||||
Reference in new issue
Block a user