Revision 8880d889
ID | 8880d8897b3959fdd040dd4c6ad732035349e13d |
Parent | 9ea446d2 |
Child | 685935f7 |
Slight change to the internal allocation results
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.
Files
- added
- modified
- copied
- renamed
- deleted