Skip to content

Commit

Permalink
Merge pull request #5841 from heyitsanthony/fix-be-semver
Browse files Browse the repository at this point in the history
etcdserver: exit on missing backend only if semver is >= 3.0.0
  • Loading branch information
Anthony Romano authored Jul 1, 2016
2 parents 581f847 + b7f5f8f commit c7a0830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func NewServer(cfg *ServerConfig) (srv *EtcdServer, err error) {
cl.SetStore(st)
cl.SetBackend(be)
cl.Recover()
if cl.Version() != nil && cl.Version().LessThan(semver.Version{Major: 3}) && !beExist {
if cl.Version() != nil && !cl.Version().LessThan(semver.Version{Major: 3}) && !beExist {
os.RemoveAll(bepath)
return nil, fmt.Errorf("database file (%v) of the backend is missing", bepath)
}
Expand Down

0 comments on commit c7a0830

Please sign in to comment.