Skip to content

Commit

Permalink
Perform lot sorting after lot validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Dec 17, 2024
1 parent 45968af commit a24b1d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lotman/lotman_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,17 +896,17 @@ func initLots(nsAds []server_structs.NamespaceAdV2) ([]Lot, error) {
// Set up lot timestamps (creation, expiration, deletion) if needed
configLotTimestamps(&lotMap)

internalLots, err = topoSort(lotMap)
if err != nil {
return internalLots, errors.Wrap(err, "error sorting lots prior to instantiation")
}

log.Tracef("Internal lot configuration: %+v", internalLots)
err = validateLotsConfig(internalLots, totalDiskSpaceB)
if err != nil {
return internalLots, errors.Wrap(err, "error validating deduced lot configuration")
}

internalLots, err = topoSort(lotMap)
if err != nil {
return internalLots, errors.Wrap(err, "error sorting lots prior to instantiation")
}

return internalLots, nil
}

Expand Down

0 comments on commit a24b1d5

Please sign in to comment.