add note on vmwarweguru->getCommandHostDelegation

This commit is contained in:
Edison Su 2013-07-30 11:37:05 -07:00
parent c42f51d75b
commit 211524f3bc
1 changed files with 2 additions and 0 deletions

View File

@ -300,6 +300,8 @@ public class VMwareGuru extends HypervisorGuruBase implements HypervisorGuru {
public Pair<Boolean, Long> getCommandHostDelegation(long hostId, Command cmd) {
boolean needDelegation = false;
//NOTE: the hostid can be a hypervisor host, or a ssvm agent. For copycommand, if it's for volume upload, the hypervisor
//type is empty, so we need to check the format of volume at first.
if (cmd instanceof CopyCommand) {
CopyCommand cpyCommand = (CopyCommand)cmd;
DataTO srcData = cpyCommand.getSrcTO();