mirror of https://github.com/apache/cloudstack.git
bug 11079: fixed a bug with autoboxing
This commit is contained in:
parent
11dfba635c
commit
7ac3c818a9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue