mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Avoid creating filer folder if not starting it.
This commit is contained in:
parent
e381356af9
commit
1791de4ae4
|
@ -140,10 +140,12 @@ func runServer(cmd *Command, args []string) bool {
|
||||||
if *masterMetaFolder == "" {
|
if *masterMetaFolder == "" {
|
||||||
*masterMetaFolder = folders[0]
|
*masterMetaFolder = folders[0]
|
||||||
}
|
}
|
||||||
|
if *isStartingFiler {
|
||||||
if *filerOptions.dir == "" {
|
if *filerOptions.dir == "" {
|
||||||
*filerOptions.dir = *masterMetaFolder + "/filer"
|
*filerOptions.dir = *masterMetaFolder + "/filer"
|
||||||
os.MkdirAll(*filerOptions.dir, 0700)
|
os.MkdirAll(*filerOptions.dir, 0700)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue