aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-06-06 20:22:42 -0700
committerChris Lu <chris.lu@gmail.com>2021-06-06 20:22:42 -0700
commite00443a940db81b195575309b9ff9128678de896 (patch)
treee34eef74061dc9ee237c20561042d3660114e55c /weed/command/mount_std.go
parent44f1ba68944ed9ff79324317902e1a768d7e92bb (diff)
downloadseaweedfs-e00443a940db81b195575309b9ff9128678de896.tar.xz
seaweedfs-e00443a940db81b195575309b9ff9128678de896.zip
mount: adjust starting order
avoid possible nil wfs.Server
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index dce2197d6..cdf340067 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -246,6 +246,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
glog.V(0).Infof("mounted %s%s to %v", *option.filer, mountRoot, dir)
server := fs.New(c, nil)
seaweedFileSystem.Server = server
+ seaweedFileSystem.StartBackgroundTasks()
err = server.Serve(seaweedFileSystem)
// check if the mount process has an error to report