You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/04/06 08:01:54 UTC

[GitHub] [cloudstack] weizhouapache commented on a change in pull request #4002: server: Search zone-wide storage pool when allocation algothrim is firstfitleastconsumed

weizhouapache commented on a change in pull request #4002: server: Search zone-wide storage pool when allocation algothrim is firstfitleastconsumed
URL: https://github.com/apache/cloudstack/pull/4002#discussion_r403898823
 
 

 ##########
 File path: engine/schema/src/main/java/com/cloud/capacity/dao/CapacityDaoImpl.java
 ##########
 @@ -903,20 +903,28 @@ public boolean removeBy(Short capacityType, Long zoneId, Long podId, Long cluste
     }
 
     @Override
-    public List<Long> orderHostsByFreeCapacity(Long clusterId, short capacityTypeForOrdering){
+    public List<Long> orderHostsByFreeCapacity(Long zoneId, Long clusterId, short capacityTypeForOrdering){
 
 Review comment:
   @DaanHoogland if we search storage pools by clusterid, we would not get the list of zone-wide storage pools, because cluster_id is NULL.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services