aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-10 20:09:43 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-10 20:09:43 -0700
commitd155f907c2759ce8c14f50952fd7ea4a68bcac65 (patch)
treeb1215babf3931df8f93e24449686a2583c6ec0e4 /weed/command/mount_std.go
parent9b0e8ef026cd74e8c641e922c79a54c5154e5a6b (diff)
downloadseaweedfs-d155f907c2759ce8c14f50952fd7ea4a68bcac65.tar.xz
seaweedfs-d155f907c2759ce8c14f50952fd7ea4a68bcac65.zip
mount: configurable read wait time
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 14374eb5c..20d08314c 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -5,6 +5,7 @@ package command
import (
"context"
"fmt"
+ "github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/filesys/meta_cache"
"os"
"os/user"
@@ -29,6 +30,10 @@ import (
func runMount(cmd *Command, args []string) bool {
grace.SetupProfiling(*mountCpuProfile, *mountMemProfile)
+ if *mountReadRetryTime < time.Second {
+ *mountReadRetryTime = time.Second
+ }
+ filer.ReadWaitTime = *mountReadRetryTime
umask, umaskErr := strconv.ParseUint(*mountOptions.umaskString, 8, 64)
if umaskErr != nil {