diff options
author | stan-sb <67116470+stan-sb@users.noreply.github.com> | 2020-06-23 10:21:23 -0400 |
---|---|---|
committer | stanbonev <sb5356@att.com> | 2020-06-23 10:31:24 -0400 |
commit | 7b790e614732183db8be972a168a60d564a86d60 (patch) | |
tree | b163e1340dac899f33f6ed670ad9068c8f7fe930 /resource-assignment/provider/src/main/java | |
parent | dde59cf2ebddb71d36a7a9b1ae6a1ecf4a6d2167 (diff) |
RA: Add option for sequential number assignment from a range
Fix case, when no previous numbers have been allocated
Change-Id: Iead3cb4fe4a8ed3f6de363d31677eb389e9f1329
Issue-ID: CCSDK-2416
Signed-off-by: Stan Bonev <sb5356@att.com>
Diffstat (limited to 'resource-assignment/provider/src/main/java')
-rw-r--r-- | resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/comp/AllocationFunction.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/comp/AllocationFunction.java b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/comp/AllocationFunction.java index 5ec7c26ba..485010656 100644 --- a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/comp/AllocationFunction.java +++ b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/comp/AllocationFunction.java @@ -359,9 +359,7 @@ class AllocationFunction extends SynchronizedFunction { break; } } - if (foundAllocated) { - n++; - } + n++; for (; foundCount < req.requestedCount && n <= range.max; n++) { foundNumbers.add(n); foundCount++; |