Merge pull request #109 from kortschak/empty

Allow memstore instances to be started empty
This commit is contained in:
Barak Michener 2014-08-12 19:42:46 -04:00
commit 1b22203e7a

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.