component: Add 'Snapshottable' component
This commit is contained in:
parent
1dac09bc03
commit
b6c36b5488
7 changed files with 28 additions and 13 deletions
|
|
@ -212,7 +212,7 @@ func (snapshot *Snapshot) makeBlackbox(io stream.IOStream, snapshots *Manager, i
|
|||
defer nquads.Close()
|
||||
|
||||
// directly store the result
|
||||
_, err = snapshots.TS.Snapshot(nquads, instance.GraphDBRepository)
|
||||
_, err = snapshots.TS.SnapshotDB(nquads, instance.GraphDBRepository)
|
||||
return err
|
||||
}, &snapshot.ErrTriplestore)
|
||||
|
||||
|
|
@ -233,7 +233,7 @@ func (snapshot *Snapshot) makeBlackbox(io stream.IOStream, snapshots *Manager, i
|
|||
defer sql.Close()
|
||||
|
||||
// directly store the result
|
||||
return snapshots.SQL.Snapshot(io, sql, instance.SqlDatabase)
|
||||
return snapshots.SQL.SnapshotDB(io, sql, instance.SqlDatabase)
|
||||
}, &snapshot.ErrSQL)
|
||||
|
||||
// wait for the group!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue