bug 12849: during fence command, remove vm state from sync so that it is not reported as stopped2.2.y

reviewed by: anthony
This commit is contained in:
abhi 2012-01-25 06:33:11 +05:30
parent a18d5c25d1
commit 58d310a0e7
1 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,11 @@ public class XenServer56FP1Resource extends XenServer56Resource {
}
}
}
//remove the VM from s_vms
synchronized (_cluster.intern()) {
s_logger.info("Fence command for VM " + vm.getNameLabel(conn));
s_vms.remove(_cluster, _name, vm.getNameLabel(conn));
}
}
return new FenceAnswer(cmd);
} catch (XmlRpcException e) {