Merge pull request #30 from xiangli-cmu/master
remove conf file when using ignore flag(due to a change in raft)release-0.4
commit
de305cfb74
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…
Reference in New Issue