aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorDaniel Santos <danlsgiga@gmail.com>2021-01-27 20:56:41 -0700
committerDaniel Santos <danlsgiga@gmail.com>2021-01-27 20:56:41 -0700
commitd38613c49acbca55937770ebf3db79817a313a05 (patch)
tree42be10200a868199a0d5c432084b989408bf0e9a /weed
parent0c64d60fdb29d48e2ab2805a33904191c78349b5 (diff)
downloadseaweedfs-d38613c49acbca55937770ebf3db79817a313a05.tar.xz
seaweedfs-d38613c49acbca55937770ebf3db79817a313a05.zip
match upstream
Diffstat (limited to 'weed')
-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 5df005202..8c6072255 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