aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-08 22:32:42 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-08 22:32:42 -0700
commit88ba08cb9e8e15e34e481143a6beec1390dc4874 (patch)
tree67b1bf0580aead9f5b9bdf8f5884c567caa6d68a /weed/command
parent784c5bb73a71bad615e500e4254c11e736b99a41 (diff)
downloadseaweedfs-88ba08cb9e8e15e34e481143a6beec1390dc4874.tar.xz
seaweedfs-88ba08cb9e8e15e34e481143a6beec1390dc4874.zip
add large disk support
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/master.go2
-rw-r--r--weed/command/server.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 15d1171e0..cd5704c3f 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -70,7 +70,7 @@ func runMaster(cmd *Command, args []string) bool {
if *masterWhiteListOption != "" {
masterWhiteList = strings.Split(*masterWhiteListOption, ",")
}
- if *volumeSizeLimitMB > 30*1000 {
+ if *volumeSizeLimitMB > util.VolumeSizeLimitGB*1000 {
glog.Fatalf("volumeSizeLimitMB should be smaller than 30000")
}
diff --git a/weed/command/server.go b/weed/command/server.go
index d88ded0ee..1638a7218 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -140,7 +140,7 @@ func runServer(cmd *Command, args []string) bool {
folders := strings.Split(*volumeDataFolders, ",")
- if *masterVolumeSizeLimitMB > 30*1000 {
+ if *masterVolumeSizeLimitMB > util.VolumeSizeLimitGB*1000 {
glog.Fatalf("masterVolumeSizeLimitMB should be less than 30000")
}