Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
etcdserver: delete member directory when discovery fails
When discovery JoinCluster fails returning DiscoveryError, etcd node falls back to proxy. And in order to start as a proxy, we need to make sure there are conflicting directories: 'member' and 'proxy' directories cannot be existent together. This deletes 'member' directory only when startEtcd fails with DiscoveryError type. This fixes etcd-io#3827.
- Loading branch information