aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-01-17 23:04:30 -0800
committerGitHub <noreply@github.com>2022-01-17 23:04:30 -0800
commite271721d4ec04365b15be96d009e20cc6f64317e (patch)
tree233f7e5b9b96abde346504474d9e5d739d0ff3b3 /weed/command/mount_std.go
parent1bd6d289d48ea3ae3c1461bf090ce0ffa6f2505f (diff)
parentb2acfd75e9155d49f32eea8d6247d0c8661ec998 (diff)
downloadseaweedfs-e271721d4ec04365b15be96d009e20cc6f64317e.tar.xz
seaweedfs-e271721d4ec04365b15be96d009e20cc6f64317e.zip
Merge pull request #2596 from chrislusf/memory_chunked_write
fix concurrency issues found in tests
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 aebd04170..8f62b4ec9 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -6,6 +6,7 @@ package command
import (
"context"
"fmt"
+ "net/http"
"os"
"os/user"
"path"
@@ -34,6 +35,10 @@ import (
func runMount(cmd *Command, args []string) bool {
+ if *mountOptions.debug {
+ go http.ListenAndServe(fmt.Sprintf(":%d", *mountOptions.debugPort), nil)
+ }
+
grace.SetupProfiling(*mountCpuProfile, *mountMemProfile)
if *mountReadRetryTime < time.Second {
*mountReadRetryTime = time.Second