Skip to content
  • Iustin Pop's avatar
    Slight change to the internal allocation results · 8880d889
    Iustin Pop authored
    Currently the Cluster.AllocSolution type is defined as a list of
    ‘(OpResult Node.list, …)’ and the results for applyMove are defined as
    ‘(OpResult Node.List, …)’. Both these means that the failure/success
    indication is hidden in the first elements of this tuple, which makes is
    harder to add other elements depending on the success/failure (like the
    score for the new node list).
    
    This patch moves the OpResult to outside of the tuple, in effect making
    all these ‘OpResult (…)’ which makes the internal tuple elements
    consistent. The patch is affecting the applyMove, tryAlloc and
    tryRealloc functions, and only briefly the hail and hspace programs.
    8880d889