Update local.go

StorageBestAlloc returns a sorted slice of storage paths. if no break, It would alloc the worst-last path but not the first-best path.
This commit is contained in:
jackoelv 2020-07-28 18:20:58 +08:00 committed by GitHub
parent a445979f1a
commit 366de97ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,6 +273,7 @@ func (st *Local) AcquireSector(ctx context.Context, sid abi.SectorID, spt abi.Re
best = filepath.Join(p.local, fileType.String(), SectorName(sid))
bestID = si.ID
break
}
if best == "" {