aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2021-03-24 18:45:58 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2021-03-24 18:45:58 +0500
commit9ce82a9cd288dc010354cfcf89bc3f0729a5272c (patch)
tree175951241589154a820c445008c5937097dfe176 /weed/command/master.go
parenta801332b0dc44ea3239e437b845e210c840e125e (diff)
downloadseaweedfs-9ce82a9cd288dc010354cfcf89bc3f0729a5272c.tar.xz
seaweedfs-9ce82a9cd288dc010354cfcf89bc3f0729a5272c.zip
GOMAXPROCS use defaults to the value of runtime.NumCPU
https://github.com/chrislusf/seaweedfs/issues/1942
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 82e33bae1..0f5e2156d 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -6,7 +6,6 @@ import (
"google.golang.org/grpc/reflection"
"net/http"
"os"
- "runtime"
"sort"
"strconv"
"strings"
@@ -86,7 +85,6 @@ func runMaster(cmd *Command, args []string) bool {
util.LoadConfiguration("security", false)
util.LoadConfiguration("master", false)
- runtime.GOMAXPROCS(runtime.NumCPU())
grace.SetupProfiling(*masterCpuProfile, *masterMemProfile)
parent, _ := util.FullPath(*m.metaFolder).DirAndName()