bug 9249: use interval type , not snapshot type

status 9249: resolved fixed
This commit is contained in:
anthony 2011-03-31 13:51:09 -07:00
parent cf7fd7447a
commit db351f8cba

View File

@ -1011,7 +1011,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
policy = _snapshotPolicyDao.acquireInLockTable(policy.getId());
policy.setSchedule(cmd.getSchedule());
policy.setTimezone(timezoneId);
policy.setInterval((short) type.ordinal());
policy.setInterval((short)intvType.ordinal());
policy.setMaxSnaps(cmd.getMaxSnaps());
policy.setActive(true);
_snapshotPolicyDao.update(policy.getId(), policy);