mirror of https://github.com/apache/cloudstack.git
bug 8567: use current time to schedule snapshot
status 8567: resolved fixed
This commit is contained in:
parent
6913ed21c5
commit
21303ea1aa
|
|
@ -280,7 +280,7 @@ public class SnapshotSchedulerImpl implements SnapshotScheduler {
|
|||
@Override @DB
|
||||
public Date scheduleNextSnapshotJob(SnapshotPolicyVO policyInstance) {
|
||||
long policyId = policyInstance.getId();
|
||||
Date nextSnapshotTimestamp = getNextScheduledTime(policyId, _currentTimestamp);
|
||||
Date nextSnapshotTimestamp = getNextScheduledTime(policyId, new Date());
|
||||
SnapshotScheduleVO snapshotScheduleVO = new SnapshotScheduleVO(policyInstance.getVolumeId(), policyId, nextSnapshotTimestamp);
|
||||
try{
|
||||
_snapshotScheduleDao.persist(snapshotScheduleVO);
|
||||
|
|
|
|||
Loading…
Reference in New Issue