Skip to content

Commit

Permalink
Merge pull request #7530 from filecoin-project/fix/ap-fail-used-acc
Browse files Browse the repository at this point in the history
Fix used sector space accounting after AddPieceFailed
  • Loading branch information
magik6k authored Oct 18, 2021
2 parents a079516 + 63c8b8e commit e5d73f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extern/storage-sealing/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func (m *Sealing) handleWaitDeals(ctx statemachine.Context, sector SectorInfo) e
return ctx.Send(SectorAddPiece{})
},
}
} else {
// make sure we're only accounting for pieces which were correctly added
// (note that m.assignedPieces[sid] will always be empty here)
m.openSectors[sid].used = used
}

go func() {
Expand Down

0 comments on commit e5d73f2

Please sign in to comment.