Merge pull request #30 from xiangli-cmu/master

remove conf file when using ignore flag(due to a change in raft)
release-0.4
Xiang Li 2013-07-23 16:07:38 -07:00
commit de305cfb74
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}