Fix suspicious behavior
Union of allocated resources and available reousrces doesn't seem to be the result as available resources Change-Id: I3c8f0b3293f81b329aa06de16635adc006730598
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -287,7 +287,7 @@ public class LinkResourceManager implements LinkResourceService { | ... | @@ -287,7 +287,7 @@ public class LinkResourceManager implements LinkResourceService { |
287 | 287 | ||
288 | Set<ResourceAllocation> allocatedRes = allocations.getResourceAllocation(link); | 288 | Set<ResourceAllocation> allocatedRes = allocations.getResourceAllocation(link); |
289 | Set<ResourceRequest> result = Sets.newHashSet(getAvailableResources(link)); | 289 | Set<ResourceRequest> result = Sets.newHashSet(getAvailableResources(link)); |
290 | - result.addAll(allocatedRes); | 290 | + result.removeAll(allocatedRes); |
291 | return result; | 291 | return result; |
292 | } | 292 | } |
293 | 293 | ... | ... |
-
Please register or login to post a comment