فهرست منبع

etcdmain: exit if discovery fails

Fix #2919

If discovery fails, etcd will hang there and does nothing. This
commit fixes the problem.
Xiang Li 10 سال پیش
والد
کامیت
6c8b32d316
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      etcdmain/etcd.go

+ 1 - 0
etcdmain/etcd.go

@@ -112,6 +112,7 @@ func Main() {
 			plog.Errorf("But etcd could not find vaild cluster configuration in the given data dir (%s).", cfg.dir)
 			plog.Infof("Please check the given data dir path if the previous bootstrap succeeded")
 			plog.Infof("or use a new discovery token if the previous bootstrap failed.")
+			os.Exit(1)
 		default:
 			plog.Fatalf("%v", err)
 		}