This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new de54522 Include 'removed' async jobs to check recurring snapshots
(#3190)
de54522 is described below
commit de545229f9b58e6b4697f91c252edf72f04c476f
Author: Gerd Müller <[email protected]>
AuthorDate: Wed May 1 16:49:09 2019 +0200
Include 'removed' async jobs to check recurring snapshots (#3190)
---
.../src/main/java/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/server/src/main/java/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
b/server/src/main/java/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
index 7af1c19..fd16a3c 100644
--- a/server/src/main/java/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
+++ b/server/src/main/java/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java
@@ -178,7 +178,7 @@ public class SnapshotSchedulerImpl extends ManagerBase
implements SnapshotSchedu
final List<SnapshotScheduleVO> snapshotSchedules =
_snapshotScheduleDao.search(sc, null);
for (final SnapshotScheduleVO snapshotSchedule : snapshotSchedules) {
final Long asyncJobId = snapshotSchedule.getAsyncJobId();
- final AsyncJobVO asyncJob = _asyncJobDao.findById(asyncJobId);
+ final AsyncJobVO asyncJob =
_asyncJobDao.findByIdIncludingRemoved(asyncJobId);
switch (asyncJob.getStatus()) {
case SUCCEEDED:
// The snapshot has been successfully backed up.