parent
9de7f24301
commit
5d906a0acc
|
@ -340,6 +340,9 @@ func NewServer(cfg *ServerConfig) (*EtcdServer, error) {
|
|||
return nil, err
|
||||
}
|
||||
srv.kv = dstorage.New(path.Join(cfg.StorageDir(), databaseFilename))
|
||||
if err := srv.kv.Restore(); err != nil {
|
||||
plog.Fatalf("v3 storage restore error: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: move transport initialization near the definition of remote
|
||||
|
|
Loading…
Reference in New Issue