From 0febfb4938a65f96d99fec7c935f35ee44ea9505 Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 8 Nov 2010 14:55:11 -0800 Subject: [PATCH] don't reschedule manual snapshot --- .../src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java index 7ce62804619..be91e3ea66d 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java @@ -340,7 +340,9 @@ public class SnapshotSchedulerImpl implements SnapshotScheduler { // reschedule all policies after management restart List policyInstances = _snapshotPolicyDao.listAll(); for( SnapshotPolicyVO policyInstance : policyInstances) { - scheduleNextSnapshotJob(policyInstance); + if( policyInstance.getId() != Snapshot.MANUAL_POLICY_ID ) { + scheduleNextSnapshotJob(policyInstance); + } } if (_testTimerTask != null) { _testClockTimer = new Timer("TestClock");