bug 8567: use current time to schedule snapshot

status 8567: resolved fixed
This commit is contained in:
anthony 2011-02-16 16:02:09 -08:00
parent 6913ed21c5
commit 21303ea1aa
1 changed files with 1 additions and 1 deletions

View File

@ -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);