Skip to content

Commit 4250f65

Browse files
address reviews
1 parent e1009dd commit 4250f65

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

engine/schema/src/main/java/org/apache/cloudstack/backup/dao/BackupScheduleDaoImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.util.List;
2424

2525
import javax.annotation.PostConstruct;
26-
import javax.inject.Inject;
2726

2827
import com.cloud.utils.DateUtil;
2928
import com.cloud.utils.db.DB;
@@ -33,13 +32,8 @@
3332
import com.cloud.utils.db.GenericDaoBase;
3433
import com.cloud.utils.db.SearchBuilder;
3534
import com.cloud.utils.db.SearchCriteria;
36-
import com.cloud.vm.dao.VMInstanceDao;
3735

3836
public class BackupScheduleDaoImpl extends GenericDaoBase<BackupScheduleVO, Long> implements BackupScheduleDao {
39-
40-
@Inject
41-
VMInstanceDao vmInstanceDao;
42-
4337
private SearchBuilder<BackupScheduleVO> backupScheduleSearch;
4438
private SearchBuilder<BackupScheduleVO> executableSchedulesSearch;
4539

@@ -93,6 +87,7 @@ public boolean remove(Long id) {
9387
preparedStatement.executeUpdate();
9488
return super.remove(id);
9589
} catch (SQLException e) {
90+
logger.warn("Unable to clean up backup schedules references from the backups table.", e);
9691
return false;
9792
}
9893
}

0 commit comments

Comments
 (0)