@@ -633,7 +632,7 @@ func (e *ETCD) setSnapshotFunction(ctx context.Context) {
...
@@ -633,7 +632,7 @@ func (e *ETCD) setSnapshotFunction(ctx context.Context) {
// completion.
// completion.
func(e*ETCD)Restore(ctxcontext.Context)error{
func(e*ETCD)Restore(ctxcontext.Context)error{
// check the old etcd data dir
// check the old etcd data dir
oldDataDir:=dataDir(e.config)+"-old"
oldDataDir:=etcdDBDir(e.config)+"-old"
ifs,err:=os.Stat(oldDataDir);err==nil&&s.IsDir(){
ifs,err:=os.Stat(oldDataDir);err==nil&&s.IsDir(){
logrus.Infof("Etcd already restored from a snapshot. Restart without --snapshot-restore-path flag. Backup and delete ${datadir}/server/db on each peer etcd server and rejoin the nodes")
logrus.Infof("Etcd already restored from a snapshot. Restart without --snapshot-restore-path flag. Backup and delete ${datadir}/server/db on each peer etcd server and rejoin the nodes")