Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions server/src/main/java/com/cloud/hypervisor/KVMGuru.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {

@Override
public Pair<Boolean, Long> getCommandHostDelegation(long hostId, Command cmd) {
if (cmd instanceof StorageSubSystemCommand) {
StorageSubSystemCommand c = (StorageSubSystemCommand)cmd;
c.setExecuteInSequence(false);
}
if (cmd instanceof CopyCommand) {
CopyCommand c = (CopyCommand) cmd;
boolean inSeq = true;
Expand All @@ -137,12 +141,11 @@ public Pair<Boolean, Long> getCommandHostDelegation(long hostId, Command cmd) {
inSeq = false;
}
c.setExecuteInSequence(inSeq);
if (c.getSrcTO().getHypervisorType() == HypervisorType.KVM) {
return new Pair<>(true, hostId);
}
}
if (cmd instanceof StorageSubSystemCommand) {
StorageSubSystemCommand c = (StorageSubSystemCommand)cmd;
c.setExecuteInSequence(false);
}
return new Pair<Boolean, Long>(false, new Long(hostId));
return new Pair<>(false, hostId);
}

@Override
Expand Down