mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Avoid checking folder if not using filer. fix #80
Fix https://github.com/chrislusf/weed-fs/issues/80
This commit is contained in:
parent
75f4964c48
commit
09f98630c0
|
@ -145,13 +145,13 @@ func runServer(cmd *Command, args []string) bool {
|
||||||
*filerOptions.dir = *masterMetaFolder + "/filer"
|
*filerOptions.dir = *masterMetaFolder + "/filer"
|
||||||
os.MkdirAll(*filerOptions.dir, 0700)
|
os.MkdirAll(*filerOptions.dir, 0700)
|
||||||
}
|
}
|
||||||
|
if err := util.TestFolderWritable(*filerOptions.dir); err != nil {
|
||||||
|
glog.Fatalf("Check Mapping Meta Folder (-filer.dir=\"%s\") Writable: %s", *filerOptions.dir, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if err := util.TestFolderWritable(*masterMetaFolder); err != nil {
|
if err := util.TestFolderWritable(*masterMetaFolder); err != nil {
|
||||||
glog.Fatalf("Check Meta Folder (-mdir=\"%s\") Writable: %s", *masterMetaFolder, err)
|
glog.Fatalf("Check Meta Folder (-mdir=\"%s\") Writable: %s", *masterMetaFolder, err)
|
||||||
}
|
}
|
||||||
if err := util.TestFolderWritable(*filerOptions.dir); err != nil {
|
|
||||||
glog.Fatalf("Check Mapping Meta Folder (-filer.dir=\"%s\") Writable: %s", *filerOptions.dir, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if *serverWhiteListOption != "" {
|
if *serverWhiteListOption != "" {
|
||||||
serverWhiteList = strings.Split(*serverWhiteListOption, ",")
|
serverWhiteList = strings.Split(*serverWhiteListOption, ",")
|
||||||
|
|
Loading…
Reference in a new issue