fix tow script run on one agent

This commit is contained in:
fanfuxiaoran 2014-08-22 09:16:21 +08:00
parent 5a928f1108
commit 6831f0ab93
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ public class HighAvailablePoolImpl extends CurrentLoadSubject implements
if (allocationFinish(load)) {
break;
}
if (this.queryAgentStatus(agent) == null || agent.isInUse()) {
if (this.queryAgentStatus(agent) == null || agent.isInUse()
|| agent.getRemainLoad() != agent.getMaxLoad()) {
continue;
}
loadForRunCurrent = getMin(load, agent.getRemainLoad());