Naoki Shiota
Committed by Gerrit Code Review

bugfix: Partial allocation of ContinuousResource always allocates full amount of the resource.

Change-Id: Ie147f8d55ae3be6e94382bbd773940a11cfd3b5f
...@@ -301,7 +301,7 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour ...@@ -301,7 +301,7 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
301 } 301 }
302 302
303 boolean success = appendValue(continuousConsumerTxMap, 303 boolean success = appendValue(continuousConsumerTxMap,
304 - continuous, new ResourceAllocation(continuous, consumer)); 304 + continuous, new ResourceAllocation(resource, consumer));
305 if (!success) { 305 if (!success) {
306 return abortTransaction(tx); 306 return abortTransaction(tx);
307 } 307 }
......