From 21303ea1aa56456228fae7659f09330e5483c98f Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 16 Feb 2011 16:02:09 -0800 Subject: [PATCH] bug 8567: use current time to schedule snapshot status 8567: resolved fixed --- .../src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java index e75adfa3767..1273ab167f6 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java @@ -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);