Chris Lu 8 years ago
parent
commit
e0dfa7a069
  1. 3
      weed/command/master.go
  2. 4
      weed/command/server.go

3
weed/command/master.go

@ -65,6 +65,9 @@ func runMaster(cmd *Command, args []string) bool {
if *masterWhiteListOption != "" { if *masterWhiteListOption != "" {
masterWhiteList = strings.Split(*masterWhiteListOption, ",") masterWhiteList = strings.Split(*masterWhiteListOption, ",")
} }
if *volumeSizeLimitMB > 30*1000 {
glog.Fatalf("volumeSizeLimitMB should be smaller than 30000")
}
r := mux.NewRouter() r := mux.NewRouter()
ms := weed_server.NewMasterServer(r, *mport, *metaFolder, ms := weed_server.NewMasterServer(r, *mport, *metaFolder,

4
weed/command/server.go

@ -151,6 +151,10 @@ func runServer(cmd *Command, args []string) bool {
} }
} }
if *masterVolumeSizeLimitMB > 30*1000 {
glog.Fatalf("masterVolumeSizeLimitMB should be less than 30000")
}
if *masterMetaFolder == "" { if *masterMetaFolder == "" {
*masterMetaFolder = folders[0] *masterMetaFolder = folders[0]
} }

Loading…
Cancel
Save