bug 7308: fix NPE when downloading primarystorage

status 7308: resolved fixed
This commit is contained in:
edison 2010-11-23 14:39:17 -08:00
parent 85cc68a742
commit 32e84feecc
1 changed files with 3 additions and 2 deletions

View File

@ -1836,12 +1836,13 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
}
if (secondaryPool != null) {
synchronized (getStoragePool(secondaryPool.getUUIDString())) {
String uuid = secondaryPool.getUUIDString();
synchronized (getStoragePool(uuid)) {
secondaryPool.destroy();
secondaryPool.undefine();
secondaryPool.free();
}
rmStoragePool(secondaryPool.getUUIDString());
rmStoragePool(uuid);
}
} catch (LibvirtException l) {