sealing: Don't panic in ReleaseUnsealed with no ranges
This commit is contained in:
parent
7900479e9c
commit
3ecb1fd5d9
2
extern/sector-storage/manager.go
vendored
2
extern/sector-storage/manager.go
vendored
@ -705,7 +705,7 @@ func (m *Manager) ReleaseUnsealed(ctx context.Context, sector storage.SectorRef,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(safeToFree) != 0 || safeToFree[0].Offset != 0 || safeToFree[0].Size.Padded() != abi.PaddedPieceSize(ssize) {
|
if len(safeToFree) == 0 || safeToFree[0].Offset != 0 || safeToFree[0].Size.Padded() != abi.PaddedPieceSize(ssize) {
|
||||||
// todo support partial free
|
// todo support partial free
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user