commit | 3bac1c378a678c61bb6ffefb065da20377dc052d | [log] [tgz] |
---|---|---|
author | Naoki Shiota <n-shiota@onlab.us> | Thu Mar 31 17:46:45 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Apr 01 23:55:58 2016 +0000 |
tree | c9e65e35e5ec61d9c33d7a35dd5824d2a381ee0c | |
parent | 2a3a9659a89dfce7a7fba85b461e7e3c959f74e1 [diff] |
bugfix: Partial allocation of ContinuousResource always allocates full amount of the resource. Change-Id: Ie147f8d55ae3be6e94382bbd773940a11cfd3b5f
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java index e17adce..aed07cd 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java
@@ -301,7 +301,7 @@ } boolean success = appendValue(continuousConsumerTxMap, - continuous, new ResourceAllocation(continuous, consumer)); + continuous, new ResourceAllocation(resource, consumer)); if (!success) { return abortTransaction(tx); }