Browse Source

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

Xiang Li 12 years ago
parent
commit
d4e097df66
1 changed files with 2 additions and 0 deletions
  1. 2 0
      etcd.go

+ 2 - 0
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)
 
 	}