Merge pull request #109 from kortschak/empty
Allow memstore instances to be started empty
This commit is contained in:
commit
1b22203e7a
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