Konstantin Lebedev
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
weed/server/raft_hashicorp.go
|
|
@ -121,6 +121,10 @@ func NewHashicorpRaftServer(option *RaftServerOption) (*RaftServer, error) { |
|
|
|
c.LogLevel = "Error" |
|
|
|
} |
|
|
|
|
|
|
|
if err := raft.ValidateConfig(c); err != nil { |
|
|
|
return nil, fmt.Errorf(`raft.ValidateConfig: %v`, err) |
|
|
|
} |
|
|
|
|
|
|
|
if option.RaftBootstrap { |
|
|
|
os.RemoveAll(path.Join(s.dataDir, ldbFile)) |
|
|
|
os.RemoveAll(path.Join(s.dataDir, sdbFile)) |
|
|
|