commit | 38bcfcfd35d7a77bcf18159edb8f800d773f3c41 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 13 15:48:54 2016 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 13 15:48:54 2016 -0700 |
tree | 206b22c9582f44595938b8d63cf823609ba6bfdb | |
parent | dffe3b808f4f858ab5493a68480f59c84948e1c3 [diff] [blame] |
Stop passing duplicate original continuous resource Change-Id: I3608b1cd362cca5e3c0534b6dfb18a7204c42aef
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentContinuousResourceSubStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentContinuousResourceSubStore.java index 9791878..7b4a4b5 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentContinuousResourceSubStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentContinuousResourceSubStore.java
@@ -107,7 +107,7 @@ return true; } - return allocation.value().hasEnoughResource(allocation.value().original(), resource); + return allocation.value().hasEnoughResource(resource); } <T> Stream<ContinuousResource> getAllocatedResources(DiscreteResourceId parent, Class<T> cls) {