mirror of https://github.com/apache/activemq.git
Merge pull request #482 from jbonofre/AMQ-7407
[AMQ-7407] Fix best target election for queue/topic partitioning
This commit is contained in:
commit
702fb86887
|
@ -254,6 +254,7 @@ public class PartitionBroker extends BrokerFilter {
|
|||
for (Map.Entry<Target, Score> entry : targetScores.entrySet()) {
|
||||
if (entry.getValue().value > bestScore) {
|
||||
bestTarget = entry.getKey();
|
||||
bestScore = entry.getValue().value;
|
||||
}
|
||||
}
|
||||
return bestTarget;
|
||||
|
|
Loading…
Reference in New Issue