bug 11079: fixed a bug with autoboxing

This commit is contained in:
Alex Huang 2011-08-12 14:13:19 -07:00
parent 11dfba635c
commit 7ac3c818a9
1 changed files with 2 additions and 2 deletions

View File

@ -575,8 +575,8 @@ public class FirstFitPlanner extends PlannerBase implements DeploymentPlanner {
if(!pool.isInMaintenance()){
if(!avoid.shouldAvoid(pool)){
long exstPoolDcId = pool.getDataCenterId();
Long exstPoolPodId = pool.getPodId();
Long exstPoolClusterId = pool.getClusterId();
long exstPoolPodId = pool.getPodId() != null ? pool.getPodId() : -1;
long exstPoolClusterId = pool.getClusterId() != null ? pool.getClusterId() : -1;
if(plan.getDataCenterId() == exstPoolDcId && plan.getPodId() == exstPoolPodId && plan.getClusterId() == exstPoolClusterId){
s_logger.debug("Planner need not allocate a pool for this volume since its READY");
suitablePools.add(pool);