bug #3911: Do not trigget TM transfers if a save_as image has been

deleted.
This commit is contained in:
Ruben S. Montero committed 2015-09-01 21:44:00 +02:00
1 parent 8e8da32686
commit 39bf8212ee
1 file changed
+8
+8
View File
@@ -408,6 +408,14 @@ static int mkfs_action(istringstream& is,
return ds_id;
}
else if ( image->get_state() == Image::DELETE )
{
NebulaLog::log("ImM", Log::INFO, "Ignoring mkfs callback, image is "
"being deleted");
image->unlock();
return ds_id;
}
is_saving = image->is_saving();
ds_id = image->get_ds_id();