Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/server/raft_server.go
|
|
@ -86,7 +86,7 @@ func NewRaftServer(option *RaftServerOption) (*RaftServer, error) { |
|
|
|
os.RemoveAll(path.Join(s.dataDir, "conf")) |
|
|
|
os.RemoveAll(path.Join(s.dataDir, "snapshot")) |
|
|
|
} |
|
|
|
if err := os.MkdirAll(path.Join(s.dataDir, "snapshot"), 0600); err != nil { |
|
|
|
if err := os.MkdirAll(path.Join(s.dataDir, "snapshot"), 0700); err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|