remove conf file when using ignore flag(due to a change in raft)

This commit is contained in:
Xiang Li 2013-07-23 15:54:12 -07:00
parent f9157a25a5
commit d4e097df66

View File

@ -466,9 +466,11 @@ func getInfo(path string) *Info {
if ignore { if ignore {
logPath := fmt.Sprintf("%s/log", path) logPath := fmt.Sprintf("%s/log", path)
confPath := fmt.Sprintf("%s/conf", path)
snapshotPath := fmt.Sprintf("%s/snapshotPath", path) snapshotPath := fmt.Sprintf("%s/snapshotPath", path)
os.Remove(infoPath) os.Remove(infoPath)
os.Remove(logPath) os.Remove(logPath)
os.Remove(confPath)
os.RemoveAll(snapshotPath) os.RemoveAll(snapshotPath)
} }