diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-07-16 21:40:47 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-07-16 21:40:55 -0700 |
| commit | e0dfa7a069ee4a5d9951d7d073a3404690fbf716 (patch) | |
| tree | 71e6fb1fe4fbc521f11ab276018ce0cf8c74858e /weed/command/master.go | |
| parent | 0909f669a0f15c132c13dac42477c211fb5dfacc (diff) | |
| download | seaweedfs-e0dfa7a069ee4a5d9951d7d073a3404690fbf716.tar.xz seaweedfs-e0dfa7a069ee4a5d9951d7d073a3404690fbf716.zip | |
ensure 30GB or less
avoid https://github.com/chrislusf/seaweedfs/issues/535
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index 8c5efbb9f..16e343f77 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -65,6 +65,9 @@ func runMaster(cmd *Command, args []string) bool { if *masterWhiteListOption != "" { masterWhiteList = strings.Split(*masterWhiteListOption, ",") } + if *volumeSizeLimitMB > 30*1000 { + glog.Fatalf("volumeSizeLimitMB should be smaller than 30000") + } r := mux.NewRouter() ms := weed_server.NewMasterServer(r, *mport, *metaFolder, |
