fixed snapshot limitation issue

This commit is contained in:
anthony 2011-05-24 14:54:16 -07:00
parent db7eacf4f9
commit b9fdb44000
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
snapshot.setStatus(Snapshot.Status.BackedUp);
_snapshotDao.update(snapshotId, snapshot);
if (snapshot.getType() == Type.RECURRING) {
if (snapshot.isRecursive()) {
_accountMgr.incrementResourceCount(snapshot.getAccountId(), ResourceType.snapshot);
}