mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
remove conf file when using ignore flag(due to a change in raft)
This commit is contained in:
parent
f9157a25a5
commit
d4e097df66
2
etcd.go
2
etcd.go
@ -466,9 +466,11 @@ func getInfo(path string) *Info {
|
||||
if ignore {
|
||||
|
||||
logPath := fmt.Sprintf("%s/log", path)
|
||||
confPath := fmt.Sprintf("%s/conf", path)
|
||||
snapshotPath := fmt.Sprintf("%s/snapshotPath", path)
|
||||
os.Remove(infoPath)
|
||||
os.Remove(logPath)
|
||||
os.Remove(confPath)
|
||||
os.RemoveAll(snapshotPath)
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user