Merge pull request #1086 from filecoin-project/fix/worker-cleanup-sealed
worker: Remove staging sectors in PreCommit
This commit is contained in:
commit
be6badc6a5
@ -116,6 +116,10 @@ func (w *worker) processTask(ctx context.Context, task sectorbuilder.WorkerTask)
|
|||||||
if err := w.push("cache", task.SectorID); err != nil {
|
if err := w.push("cache", task.SectorID); err != nil {
|
||||||
return errRes(xerrors.Errorf("pushing precommited data: %w", err))
|
return errRes(xerrors.Errorf("pushing precommited data: %w", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := w.remove("staging", task.SectorID); err != nil {
|
||||||
|
return errRes(xerrors.Errorf("cleaning up staged sector: %w", err))
|
||||||
|
}
|
||||||
case sectorbuilder.WorkerCommit:
|
case sectorbuilder.WorkerCommit:
|
||||||
proof, err := w.sb.SealCommit(ctx, task.SectorID, task.SealTicket, task.SealSeed, task.Pieces, task.Rspco)
|
proof, err := w.sb.SealCommit(ctx, task.SectorID, task.SealTicket, task.SealSeed, task.Pieces, task.Rspco)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user