clear cache directory when mount exits (#6605)

Signed-off-by: lizhengui <lizhengui@virtaitech.com>
Co-authored-by: lizhengui <lizhengui@virtaitech.com>
This commit is contained in:
lizhengui007
2025-03-07 00:14:17 +08:00
committed by GitHub
parent 533b675ec8
commit 61249d8dde
2 changed files with 8 additions and 0 deletions

View File

@@ -284,5 +284,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
server.Serve()
seaweedFileSystem.ClearCacheDir()
return true
}