mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Merge branch '4.9'
This commit is contained in:
commit
cdb4945205
@ -388,9 +388,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…
x
Reference in New Issue
Block a user