avoid shutdown in the middle of running

This commit is contained in:
Chris Lu
2020-08-19 00:42:02 -07:00
parent ae9bc4a508
commit a78772d5ea
2 changed files with 0 additions and 7 deletions

View File

@@ -88,9 +88,6 @@ func NewSeaweedFileSystem(option *Option) *WFS {
if option.CacheSizeMB > 0 {
os.MkdirAll(cacheDir, 0755)
wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, cacheDir, option.CacheSizeMB)
grace.OnInterrupt(func() {
wfs.chunkCache.Shutdown()
})
}
wfs.metaCache = meta_cache.NewMetaCache(path.Join(cacheDir, "meta"))