aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-26 02:50:50 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-26 02:50:53 -0800
commit3a1d3d3413c5fc6a49c138ed5024f2b907f63d37 (patch)
tree387c4e7e4e559942d9bd1d4cfeee1d23599e209f /weed/command
parentc41961d5cccf4a4b49e5968e0da283c6fb1f47c3 (diff)
downloadseaweedfs-3a1d3d3413c5fc6a49c138ed5024f2b907f63d37.tar.xz
seaweedfs-3a1d3d3413c5fc6a49c138ed5024f2b907f63d37.zip
mount: properly invalidate kernel node cache entry
fix https://github.com/chrislusf/seaweedfs/issues/1752
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/mount_std.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 23f224cc2..eaa66519e 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -208,7 +208,9 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
})
glog.V(0).Infof("mounted %s%s to %s", filer, mountRoot, dir)
- err = fs.Serve(c, seaweedFileSystem)
+ server := fs.New(c, nil)
+ seaweedFileSystem.Server = server
+ err = server.Serve(seaweedFileSystem)
// check if the mount process has an error to report
<-c.Ready