mirror of https://github.com/apache/cloudstack.git
quota: though default value for quota_calculated is 0, the usage server
makes it null while entering usage entries. Flipping the condition so as to acocunt for that.
This commit is contained in:
parent
d3f65ae90c
commit
32c5004381
|
|
@ -475,7 +475,7 @@ public class UsageDaoImpl extends GenericDaoBase<UsageVO, Long> implements Usage
|
|||
if (domainId != -1) {
|
||||
sc.addAnd("domainId", SearchCriteria.Op.EQ, domainId);
|
||||
}
|
||||
sc.addAnd("quotaCalculated", SearchCriteria.Op.EQ, 0);
|
||||
sc.addAnd("quotaCalculated", SearchCriteria.Op.NEQ, 1);
|
||||
s_logger.debug("Getting usage records" + usageFilter.getOrderBy());
|
||||
Pair<List<UsageVO>, Integer> usageRecords = searchAndCountAllRecords(sc, usageFilter);
|
||||
TransactionLegacy.open(opendb).close();
|
||||
|
|
|
|||
Loading…
Reference in New Issue