diff options
| author | lizhengui007 <517925159@qq.com> | 2025-03-07 00:14:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 08:14:17 -0800 |
| commit | 61249d8dde3761473633a5dc667248f8e5e2a69a (patch) | |
| tree | efa6c42d5dee85da866c7f5ce9aefac1803655fb /weed/command | |
| parent | 533b675ec821c663418154d1b097e4acc35fffef (diff) | |
| download | seaweedfs-61249d8dde3761473633a5dc667248f8e5e2a69a.tar.xz seaweedfs-61249d8dde3761473633a5dc667248f8e5e2a69a.zip | |
clear cache directory when mount exits (#6605)
Signed-off-by: lizhengui <lizhengui@virtaitech.com>
Co-authored-by: lizhengui <lizhengui@virtaitech.com>
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount_std.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index e4209449a..f00daba8a 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -284,5 +284,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { server.Serve() + seaweedFileSystem.ClearCacheDir() + return true } |
