mirror of https://github.com/apache/cloudstack.git
timeout is not set for some commands
This commit is contained in:
parent
95ad8b26ea
commit
0bdd6ded96
|
|
@ -825,6 +825,9 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, Manager {
|
|||
throw new AgentUnavailableException(-1);
|
||||
}
|
||||
|
||||
if (timeout <= 0) {
|
||||
timeout = _wait;
|
||||
}
|
||||
assert noDbTxn() : "I know, I know. Why are we so strict as to not allow txn across an agent call? ... Why are we so cruel ... Why are we such a dictator .... Too bad... Sorry...but NO AGENT COMMANDS WRAPPED WITHIN DB TRANSACTIONS!";
|
||||
|
||||
Command[] cmds = commands.toCommands();
|
||||
|
|
@ -1507,9 +1510,6 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, Manager {
|
|||
wait = cmd.getWait();
|
||||
}
|
||||
}
|
||||
if ( wait == 0 ) {
|
||||
wait = _wait;
|
||||
}
|
||||
return send(hostId, cmds, wait);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue