v1.27.0-a #10

Closed
jonathanface wants to merge 473 commits from v1.27.0-a into master
Showing only changes of commit 6997162c71 - Show all commits

View File

@ -508,6 +508,9 @@ func (sb *SealCalls) MoveStorage(ctx context.Context, sector storiface.SectorRef
var opts []storiface.AcquireOption var opts []storiface.AcquireOption
if taskID != nil { if taskID != nil {
resv, ok := sb.sectors.storageReservations.Load(*taskID) resv, ok := sb.sectors.storageReservations.Load(*taskID)
// if the reservation is missing MoveStorage will simply create one internally. This is fine as the reservation
// will only be missing when the node is restarting, which means that the missing reservations will get recreated
// anyways, and before we start claiming other tasks.
if ok { if ok {
defer resv.Release() defer resv.Release()