From d4e097df66505584120e8e6914d5c40de8a96df1 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 23 Jul 2013 15:54:12 -0700 Subject: [PATCH] remove conf file when using ignore flag(due to a change in raft) --- etcd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etcd.go b/etcd.go index 20701f954..d8f955d46 100644 --- a/etcd.go +++ b/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) }