Separate db.Open and db.Load

Updates #82.
This commit is contained in:
kortschak 2014-08-08 09:31:02 +09:30
parent 2d4c07b56d
commit 4c3f5109eb
3 changed files with 31 additions and 12 deletions

View file

@ -28,12 +28,5 @@ func Open(cfg *config.Config) (graph.TripleStore, error) {
return nil, err
}
if !graph.IsPersistent(cfg.DatabaseType) {
err = Load(ts, cfg, cfg.DatabasePath)
if err != nil {
return nil, err
}
}
return ts, nil
}