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:
parent
a445979f1a
commit
366de97ab5
@ -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))
|
best = filepath.Join(p.local, fileType.String(), SectorName(sid))
|
||||||
bestID = si.ID
|
bestID = si.ID
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if best == "" {
|
if best == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user