mirror of https://github.com/apache/cloudstack.git
bug 8216: we do not need to create an event in createVolFromSnapshot(), as we do it in alloc vol
This commit is contained in:
parent
bae62f844d
commit
a84d34cc72
|
|
@ -537,9 +537,9 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||
}
|
||||
}
|
||||
|
||||
UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_VOLUME_CREATE, volume.getAccountId(), volume.getDataCenterId(),
|
||||
volume.getId(), volume.getName(), offeringId, templateId, createdVolume.getSize());
|
||||
_usageEventDao.persist(usageEvent);
|
||||
// UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_VOLUME_CREATE, volume.getAccountId(), volume.getDataCenterId(),
|
||||
// volume.getId(), volume.getName(), offeringId, templateId, createdVolume.getSize());
|
||||
// _usageEventDao.persist(usageEvent);
|
||||
}
|
||||
txn.commit();
|
||||
return createdVolume;
|
||||
|
|
|
|||
Loading…
Reference in New Issue