mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'origin/4.18' into 4.19
This commit is contained in:
commit
3d32ab5a49
@ -547,16 +547,11 @@ public class UsageDaoImpl extends GenericDaoBase<UsageVO, Long> implements Usage
|
||||
TransactionLegacy txn = TransactionLegacy.currentTxn();
|
||||
PreparedStatement pstmt = null;
|
||||
try {
|
||||
txn.start();
|
||||
pstmt = txn.prepareAutoCloseStatement(DELETE_ALL_BY_INTERVAL);
|
||||
pstmt.setLong(1, days);
|
||||
pstmt.executeUpdate();
|
||||
txn.commit();
|
||||
} catch (Exception ex) {
|
||||
txn.rollback();
|
||||
s_logger.error("error removing old cloud_usage records for interval: " + days);
|
||||
} finally {
|
||||
txn.close();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -402,6 +402,7 @@ export default {
|
||||
if (this.arrayHasItems(networks)) {
|
||||
this.network = networks[0]
|
||||
}
|
||||
resolve(this.network)
|
||||
})
|
||||
this.networkLoading = false
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user