Allow memstore instances to be started empty
This allows easier debugging of web UI problem.
This commit is contained in:
parent
11c3cd17c6
commit
0c79c11606
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue