We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e41add3 commit ca3c245Copy full SHA for ca3c245
engine/schema/src/main/java/com/cloud/usage/dao/UsageDaoImpl.java
@@ -476,16 +476,11 @@ public void doInTransactionWithoutResult(TransactionStatus status) {
476
TransactionLegacy txn = TransactionLegacy.currentTxn();
477
PreparedStatement pstmt = null;
478
try {
479
- txn.start();
480
pstmt = txn.prepareAutoCloseStatement(DELETE_ALL_BY_INTERVAL);
481
pstmt.setLong(1, days);
482
pstmt.executeUpdate();
483
- txn.commit();
484
} catch (Exception ex) {
485
- txn.rollback();
486
s_logger.error("error removing old cloud_usage records for interval: " + days);
487
- } finally {
488
- txn.close();
489
}
490
491
});
0 commit comments