mirror of https://github.com/apache/cloudstack.git
Merge branch '4.8' into 4.9
This commit is contained in:
commit
240f44392c
|
|
@ -391,9 +391,10 @@ public class SnapshotManagerImpl extends MutualExclusiveIdsManagerBase implement
|
|||
SnapshotVO snapshot = _snapshotDao.findById(snapshotId);
|
||||
if (policyId != Snapshot.MANUAL_POLICY_ID) {
|
||||
SnapshotScheduleVO snapshotSchedule = _snapshotScheduleDao.getCurrentSchedule(volumeId, policyId, true);
|
||||
assert snapshotSchedule != null;
|
||||
snapshotSchedule.setSnapshotId(snapshotId);
|
||||
_snapshotScheduleDao.update(snapshotSchedule.getId(), snapshotSchedule);
|
||||
if (snapshotSchedule !=null) {
|
||||
snapshotSchedule.setSnapshotId(snapshotId);
|
||||
_snapshotScheduleDao.update(snapshotSchedule.getId(), snapshotSchedule);
|
||||
}
|
||||
}
|
||||
|
||||
if (snapshot != null && snapshot.isRecursive()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue