Merge pull request #7530 from filecoin-project/fix/ap-fail-used-acc
Fix used sector space accounting after AddPieceFailed
This commit is contained in:
commit
e5d73f2923
4
extern/storage-sealing/input.go
vendored
4
extern/storage-sealing/input.go
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user