Bug 13794: When snapshot backup fails, snapshot.delete event is not required. Snapshot.create is logged only afetr successfull backup.

Status 13794: resolved fixed
Reviewed-By: Nitin
This commit is contained in:
kishan 2012-02-17 16:17:03 +05:30
parent dcf96fe0c8
commit eee03d4426
1 changed files with 0 additions and 2 deletions

View File

@ -668,8 +668,6 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
} else {
s_logger.warn("Failed to back up snapshot on secondary storage, deleting the record from the DB");
_snapshotDao.remove(snapshotId);
UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_SNAPSHOT_DELETE, snapshot.getAccountId(), snapshot.getDataCenterId(), snapshotId, snapshot.getName(), null, null, 0L);
_usageEventDao.persist(usageEvent);
}
txn.commit();