From eee03d442617a8efd743c104dc5acf5175cbc6ab Mon Sep 17 00:00:00 2001 From: kishan Date: Fri, 17 Feb 2012 16:17:03 +0530 Subject: [PATCH] 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 --- server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 9179a70aae6..f4c9d1f8ff3 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -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();