mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-29 18:50:08 +03:00
Feature #3782: Remove unused param from ImageManager::set_image_snapshots
This commit is contained in:
parent
1411e4adbb
commit
d4c1170eee
@ -195,9 +195,8 @@ public:
|
||||
* and of type OS or DATABLOCK.
|
||||
* @param iid id of image
|
||||
* @param s snapshot list
|
||||
* @param failed the associated VM releasing the images is FAILED
|
||||
*/
|
||||
void set_image_snapshots(int iid, const Snapshots& s, bool failed);
|
||||
void set_image_snapshots(int iid, const Snapshots& s);
|
||||
|
||||
/**
|
||||
* Deletes the snapshot of an image
|
||||
|
@ -869,7 +869,7 @@ string * ImageManager::format_message(
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
void ImageManager::set_image_snapshots(int iid, const Snapshots& s, bool failed)
|
||||
void ImageManager::set_image_snapshots(int iid, const Snapshots& s)
|
||||
{
|
||||
Image * img = ipool->get(iid,true);
|
||||
|
||||
|
@ -2600,7 +2600,7 @@ void VirtualMachine::release_disk_images()
|
||||
|
||||
if (it != snapshots.end())
|
||||
{
|
||||
imagem->set_image_snapshots(iid, *(it->second), img_error);
|
||||
imagem->set_image_snapshots(iid, *(it->second));
|
||||
}
|
||||
|
||||
imagem->release_image(oid, iid, img_error);
|
||||
|
@ -1099,7 +1099,7 @@ void VirtualMachinePool::delete_attach_disk(int vid)
|
||||
|
||||
if (snap != 0)
|
||||
{
|
||||
imagem->set_image_snapshots(image_id, *snap, false);
|
||||
imagem->set_image_snapshots(image_id, *snap);
|
||||
delete snap;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user