aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorwuyuxiang <wuyuxiang@corp.netease.com>2020-04-28 14:10:23 +0800
committerwuyuxiang <wuyuxiang@corp.netease.com>2020-04-28 14:10:23 +0800
commit6850d28d6b99155dca2da8fa8bbf76124f528fa4 (patch)
tree2a6eb0dd50a530dfb72496a69715438c9aa15a44 /weed/command/master.go
parent2a7957b4ca83fdb5232d761074e81dce6b99648f (diff)
downloadseaweedfs-6850d28d6b99155dca2da8fa8bbf76124f528fa4.tar.xz
seaweedfs-6850d28d6b99155dca2da8fa8bbf76124f528fa4.zip
refacotr: move signal handling and pprof to grace package
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 7e69f558c..6301c7730 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -8,6 +8,7 @@ import (
"strings"
"github.com/chrislusf/raft/protobuf"
+ "github.com/chrislusf/seaweedfs/weed/util/grace"
"github.com/gorilla/mux"
"google.golang.org/grpc/reflection"
@@ -82,7 +83,7 @@ func runMaster(cmd *Command, args []string) bool {
util.LoadConfiguration("master", false)
runtime.GOMAXPROCS(runtime.NumCPU())
- util.SetupProfiling(*masterCpuProfile, *masterMemProfile)
+ grace.SetupProfiling(*masterCpuProfile, *masterMemProfile)
if err := util.TestFolderWritable(*m.metaFolder); err != nil {
glog.Fatalf("Check Meta Folder (-mdir) Writable %s : %s", *m.metaFolder, err)