change break to continue in BalancerCostAnalyzer to skip calculating cost when it's not necessary

This commit is contained in:
Nelson Ray 2013-02-13 08:57:39 -08:00
parent fcbac96193
commit 429e23d3b2
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ public class BalancerCostAnalyzer
if (proposalSegmentSize > server.getAvailableSize()
|| server.isServingSegment(proposalSegment)
|| server.isLoadingSegment(proposalSegment)) {
break;
continue;
}
/** The contribution to the total cost of a given server by proposing to move the segment to that server is... */