Fix regression in stagingContext
This commit is contained in:
parent
3a893bbfb6
commit
fcdb3a1d6a
14 changed files with 78 additions and 70 deletions
|
|
@ -14,7 +14,7 @@ func (Triplestore) SnapshotNeedsRunning() bool { return false }
|
|||
|
||||
func (Triplestore) SnapshotName() string { return "triplestore" }
|
||||
|
||||
func (ts *Triplestore) Snapshot(wisski models.Instance, scontext component.StagingContext) error {
|
||||
func (ts *Triplestore) Snapshot(wisski models.Instance, scontext *component.StagingContext) error {
|
||||
return scontext.AddDirectory(".", func(ctx context.Context) error {
|
||||
return scontext.AddFile(wisski.GraphDBRepository+".nq", func(ctx context.Context, file io.Writer) error {
|
||||
_, err := ts.SnapshotDB(ctx, file, wisski.GraphDBRepository)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue