sychronized migrate command, happened see that migrating failed, due to conflict in vnc port allocation

This commit is contained in:
Edison Su 2011-01-31 16:04:50 -05:00
parent 200da6d39d
commit fd944d646d

View File

@ -1591,7 +1591,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
return command.execute();
}
private Answer execute(MigrateCommand cmd) {
private synchronized Answer execute(MigrateCommand cmd) {
String vmName = cmd.getVmName();
State state = null;