In Balancer, the target task should be removed when its size < 0. Contributed by Yiqun Lin
This commit is contained in:
parent
c7fe1f5ec5
commit
5004b0571e
@ -734,7 +734,7 @@ private PendingMove chooseNextMove() {
|
||||
long blockSize = pendingBlock.block.getNumBytes();
|
||||
incScheduledSize(-blockSize);
|
||||
task.size -= blockSize;
|
||||
if (task.size == 0) {
|
||||
if (task.size <= 0) {
|
||||
i.remove();
|
||||
}
|
||||
return pendingBlock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user