Allow memstore instances to be started empty

This allows easier debugging of web UI problem.
This commit is contained in:
kortschak 2014-08-09 18:13:44 +09:30
parent 11c3cd17c6
commit 0c79c11606

View file

@ -193,6 +193,9 @@ func load(ts graph.TripleStore, cfg *config.Config, path, typ string) error {
if path == "" {
path = cfg.DatabasePath
}
if path == "" {
return nil
}
u, err := url.Parse(path)
if err != nil || u.Scheme == "file" || u.Scheme == "" {
// Don't alter relative URL path or non-URL path parameter.